Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
can we return to server while ses..
Name: etrix Date: January 4, 2008 at 03:42:13 Pacific OS: win xp CPU/Ram: P4 / 256 mb
Comment:
Hi, can anybody advice me at what extent we can replace javascript with php?. Can we pick value from html form to php without form submission?. if we can than how?
Name: Michael J (by mjdamato) Date: January 4, 2008 at 14:30:17 Pacific
Reply:
In a sense, yes.
You can use AJAX (combination of JavaScript and server-side pages) to send/receive data from a web page and the server. So, you could use any JavaScript trigger to call a function that will "grab" a value from the form, submit it to a PHP page (transparent to the user) and return back the results to the JavaScript which can act upon it further.
One common use for this would be if you have dependant select lists. For example, if you want the user to select a region and then select an office in that region, you would want the "office" field to dynamically change when the region is selected. For a small list I would do this all in JS, but for large or complex lists you could use AJAX. When the user changes the region, JS is used to send the selected region to a PHP page which returns the list of offices. The JS then uses that list to repopulate the "offices" list.
There are many AJAX turorials available on the web.
Summary: Can we run standalone java programs (not servlets or jsp) from WEB based application in Sun One server.Example : Running a java code for Sending mail (with a report as attachment having html format) o...
Summary: Well, that is going to do exactly that - include itself forever until it eats up all your RAM. The refresh must be done CLIENT side - you can't do it server-side with php. The best you could hope for...