Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

form-tak php and javascript
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

Report this thread to moderator Post Follow-up to this message
Old Post
Michael Schrading
08-12-07 12:58 PM


Re: form-tak php and javascript
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

Report this thread to moderator Post Follow-up to this message
Old Post
Julien Plée
08-12-07 11:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:57 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.