|
-
October 26th, 1999, 03:42 AM
#1
cancel submit event
how to cancel submit event after an submit button has been pressed in a html page?
-
October 26th, 1999, 04:20 AM
#2
Re: cancel submit event
return FALSE in the onsubmit event handler for your form object.
-
October 26th, 1999, 05:00 AM
#3
Re: cancel submit event
do u have any sample code for my reference?
-
October 26th, 1999, 06:09 AM
#4
Re: cancel submit event
<FORM onsubmit="return(FormOk());">
...
function FormOk()
{
if( everythingIsOk ) {
return(false);
}
else{return(true);}
}
(Jscript code)
-
October 26th, 1999, 08:31 PM
#5
Re: cancel submit event
hai lothar..
i tried it out but doesn't work.... i attach the code below... i'm using VB script...
function submitSuccess()
if error then
submitSuccess = false
else
submitSuccess = true
end if
end function
<form onsubmit="submitSuccess()">
is there anything wrong with my code???
thanks in advance....
-
October 27th, 1999, 10:18 AM
#6
Re: cancel submit event
yes, there is something wrong with your code.
you need to write
<form onsubmit="return(...)"...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|