Reply to Re: form-tak php and javascript

Your name:

Reply:


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

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация