Hello ALL!
I have a submit button with a function onClick="checkStats($info);" which causes the javascript checkStats() function to be called and processed before the page continues the submit. I want to know if it possible to stop the submit. I am passing data to the checkStats() function and if a certain criteria is met I want to stop the submission from taking place and instead make one of my hidden tables visible.
Here is small form example:
I hope that I have made my intentions clear.
I appreciate any help in any form, be it, tutorials, links, advice...etc.
Thanks in advance.
Sean.![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
I have a submit button with a function onClick="checkStats($info);" which causes the javascript checkStats() function to be called and processed before the page continues the submit. I want to know if it possible to stop the submit. I am passing data to the checkStats() function and if a certain criteria is met I want to stop the submission from taking place and instead make one of my hidden tables visible.
Here is small form example:
Code:
<form name="testform" method="post" action="test.cgi">
<input type="text" name="yourname">
<input type="submit" name="SubmitProcess" value="Click Me" onClick="checkStats($info)">
</form>
I hope that I have made my intentions clear.
I appreciate any help in any form, be it, tutorials, links, advice...etc.
Thanks in advance.
Sean.
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)