‎2006 May 10 11:32 PM
Hi All,
I have an HTMLB form where I have a submit button with an onClientClick javascript check function.
When I hit submit, the javascript executes, finds an error and then allows the form to go on with processing which is what I do not want to do.
I want the HTMLB form to suspend execution in case the JavaScript function returns an error.
I trigger the error by adding
return false;to the end of js function.
Is there another way to do this?
Thanks,
Roman
‎2006 May 11 5:14 AM
Hi Roman,
Use the statement "htmlbevent.cancelsubmit" in the javascript check function .
Regards,
Arun.
‎2006 May 11 5:14 AM
Hi Roman,
Use the statement "htmlbevent.cancelsubmit" in the javascript check function .
Regards,
Arun.
‎2006 May 11 4:54 PM
‎2006 May 30 5:18 AM
Hello When we have set the submit button as the default button and press return the htmlbevent.cancelsubmit is not executed meaning it does not prevent the submission do you have any idea why it is behaving like that
‎2006 May 30 6:20 AM
‎2006 May 11 5:24 AM
HI
GOOD
YOU CAN DO THE SAME THING USING THE IF LOOP
IF THE EVENT IS TRUE THAN YOU CAN COMEOUT FROM THE JAVA SCRIPT FORM.
THANKS
MRUTYUN