JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 24th, 2001, 07:54 PM
theprophet theprophet is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 2 theprophet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to theprophet Send a message via Yahoo to theprophet
Question

I have searched and searched online and have not found what I want. I am looking for some kind of manual that discusses how to intergrate PHP with JavaScript. I have found out that the book PHP 4 Bible has a section on it but I do not want to pay $30 just for that one section..Does anyone know where I could learn this online?

Reply With Quote
  #2  
Old February 25th, 2001, 01:04 AM
pholiday pholiday is offline
Resident Moron
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Tuscaloosa, AL
Posts: 26 pholiday User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to pholiday Send a message via AIM to pholiday

What do you mean by "integrate"? While these two languages can have functions that complement each other, there's not that much to using them together except to just learn both of them and apply them when necessary.

Because Javascript is almost always Client-Side and PHP is Server-Side, there are some natural combinations to be made, For example, lots of form validation is done by Javascript because it saves the bandwidth and time of having to make multiple trips to the server for one submission.

I'm sure there are some great tutorials, but it'd be easier to point you to them if I had a better grasp of what you're after.
__________________
Pete Holiday
"The most overlooked advantage to owning a
computer is that if they foul up, there's no law
against whacking them around a little."

More Quotes

Reply With Quote
  #3  
Old February 25th, 2001, 01:25 PM
ame12 ame12 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 23 ame12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 26 sec
Reputation Power: 0
It's actually pretty easy

Remember that the Javascript is like HTML... it just flows down to the browser in your page.

I combine Javascript and PHP routinely. So if you wanted, for instance, for some Javascript to update a different field based upon some PHP variable, you can simply use something like:

document.form[0].<%=$myFormField;%>.value = 'Blah';

Where 'myformfield' is your PHP variable (of course, this example assumes you have ASP tags enabled in PHP.INI).


Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > JavaScript & PHP

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap