<div><form name="form" action="dothis.php" method="post" onSubmit="return<br>check_upload_required(); openpopup(); submitonce(this);"></div>
<div> </div>
<div>To invoke all the 3 methods, just remove the keyword "return".<br>i.e.</div>
<div><form name="form" action="dothis.php" method="post" onSubmit="check_upload_required(); openpopup(); submitonce(this);"></div>
<div><br><br> </div>
<div><span class="gmail_quote">On 9/1/05, <b class="gmail_sendername">Ed Curtis</b> <<a href="mailto:ed@homes2see.com">ed@homes2see.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>I tried the mentioned process but the submit button on the form does not<br>disable. Any suggestions?<br>
<br>On Thu, 1 Sep 2005, Nick Fitzsimons wrote:<br><br>> ><br>> > I'm attempting to clear three functions with a single onSubmit form event.<br>> ><br>> > <form name="form" action="
dothis.php" method="post" onSubmit="return<br>> > check_upload_required(); openpopup(); submitonce(this);"><br>> ><br>> > The check_upload_required function works as expected but the script never
<br>> > executes the openpopup() or submitonce(this) functions. If I remove the<br>> > check_upload_required() from the onSubmit event the other functions work<br>> > as expected. Can anyone shed some light on why this is happening. I really
<br>> > need for all three functions to work together.<br>> ><br>><br>><br>> When you use "return check_upload_required;" it does exactly that -<br>> returns with the value that came back from the function, and therefore
<br>> stops processing any code after that point.<br>><br>> Try defining a single function:<br>><br>> function submitHandler(theForm) {<br>> var result = check_upload_required;<br>> if (result) {
<br>> openpopup();<br>> submitonce(theForm);<br>> }<br>> return result;<br>> }<br>><br>> and change the handler to<br>><br>> onsubmit="return submitHandler(this);"<br>
><br>> HTH,<br>><br>> Nick.<br>> --<br>> Nick Fitzsimons<br>> <a href="http://www.nickfitz.co.uk/">http://www.nickfitz.co.uk/</a><br>><br>><br>> _______________________________________________
<br>> Javascript mailing list<br>> <a href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a><br>> <a href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript
</a><br>><br><br>_______________________________________________<br>Javascript mailing list<br><a href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a><br><a href="https://lists.LaTech.edu/mailman/listinfo/javascript">
https://lists.LaTech.edu/mailman/listinfo/javascript</a><br></blockquote></div><br>