Code Comments
Programming Forum and web based access to our favorite programming groups.Hello world :-) My problem ist to have a line like this <form ... action=3D"url/script.php" .... onsubmit=3D"return running();"> the function running() is a Javascript- function which should call a = php-script, just to set a value in a variable and to know that the form = has been submitted, and than close this php script.=20 But how to start a php-script within a Javascript-function which will do = this?? I know it's sunday, but... :-)=20 please for a help or hint wouild be fine. Michael
Post Follow-up to this messageLe Sun, 12 Aug 2007 12:13:44 +0200, Michael Schrading a écritÂ_: > Hello world :-) > > My problem ist to have a line like this > > <form ... action="url/script.php" .... onsubmit="return running();"> > > the function running() is a Javascript- function which should call a > php-script, just to set a value in a variable and to know that the form > has been submitted, and than close this php script. > > But how to start a php-script within a Javascript-function which will do > this?? > > I know it's sunday, but... :-) > > please for a help or hint wouild be fine. > > Michael Hello, With this sunny sunday, I guess I won't stay long at home :) However I'll take a few seconds for answering you. You can give a try to Ajax requests. I allows lightweight server script call through HTTPXmlRequest and should be OK with most browsers. I used to create a SCRIPT element for almost the same purpose but it could'nt work on Safari as Safari refused to load an external source during creation. http://developer.mozilla.org/fr/docs/AJAX Have a nice sunday computing! Julien
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.