|
Posted by Julien Plιe on 08/12/07 13:57
Le 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
Navigation:
[Reply to this message]
|