Page 1 of 1

Multiple Form submission

Posted: Mon Apr 14, 2003 12:01 pm
by k_nitin2k
Hello i am new to Jscript.
I want to stop multiple submission of forms. I have a function to do that but it doesn't work if Jscript is not enabled. So i extended my function to check whether Jscript is enabled or not. So what i want to do now is to call that function (which stops multiple submission) when the user clicks on submit button, so if user have Jscript disabled it won't work at all and if Jscript is enabled , should work, so how i can call this function from <input type="..." method"post" action=" "...........> statement. Thanks.......

onClick or onSubmit

Posted: Mon Apr 14, 2003 4:26 pm
by phpScott
Well it depends where you want to call this function
if it attached to a button

Code: Select all

<input type="button" name="submit" value="Submit Form" onClick="someFunction()" />
if is on the action of the form

Code: Select all

<form name="formName" method="post" onSubmit="someFunction()">
Try these examples and one should work for you.

phpScott