<div>&lt;form name=&quot;form&quot; action=&quot;dothis.php&quot; method=&quot;post&quot; onSubmit=&quot;return<br>check_upload_required(); openpopup(); submitonce(this);&quot;&gt;</div>
<div>&nbsp;</div>
<div>To invoke all the 3 methods, just remove the keyword &quot;return&quot;.<br>i.e.</div>
<div>&lt;form name=&quot;form&quot; action=&quot;dothis.php&quot; method=&quot;post&quot; onSubmit=&quot;check_upload_required(); openpopup(); submitonce(this);&quot;&gt;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/1/05, <b class="gmail_sendername">Ed Curtis</b> &lt;<a href="mailto:ed@homes2see.com">ed@homes2see.com</a>&gt; 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>&gt; &gt;<br>&gt; &gt; I'm attempting to clear three functions with a single onSubmit form event.<br>&gt; &gt;<br>&gt; &gt; &lt;form name=&quot;form&quot; action=&quot;
dothis.php&quot; method=&quot;post&quot; onSubmit=&quot;return<br>&gt; &gt; check_upload_required(); openpopup(); submitonce(this);&quot;&gt;<br>&gt; &gt;<br>&gt; &gt; The check_upload_required function works as expected but the script never
<br>&gt; &gt; executes the openpopup() or submitonce(this) functions. If I remove the<br>&gt; &gt; check_upload_required() from the onSubmit event the other functions work<br>&gt; &gt; as expected. Can anyone shed some light on why this is happening. I really
<br>&gt; &gt; need for all three functions to work together.<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; When you use &quot;return check_upload_required;&quot; it does exactly that -<br>&gt; returns with the value that came back from the function, and therefore
<br>&gt; stops processing any code after that point.<br>&gt;<br>&gt; Try defining a single function:<br>&gt;<br>&gt; function submitHandler(theForm) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;var result = check_upload_required;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;if (result) {
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; openpopup();<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; submitonce(theForm);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;return result;<br>&gt; }<br>&gt;<br>&gt; and change the handler to<br>&gt;<br>&gt; onsubmit=&quot;return submitHandler(this);&quot;<br>
&gt;<br>&gt; HTH,<br>&gt;<br>&gt; Nick.<br>&gt; --<br>&gt; Nick Fitzsimons<br>&gt; <a href="http://www.nickfitz.co.uk/">http://www.nickfitz.co.uk/</a><br>&gt;<br>&gt;<br>&gt; _______________________________________________
<br>&gt; Javascript mailing list<br>&gt; <a href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a><br>&gt; <a href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript
</a><br>&gt;<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>