I have written a form is ASP with JS validations. The form contains text fields and areas to upload files. Validation of the form occurs after the Submit button is pressed. If all areas of the form are good, a window appears (return confirm), asking the user to click OK to submit or Cancel to abort the submission. All works well but it takes up to a minute to upload the "attached" files. I do not want the user to click the Submit button again.
I have tried combining several expert solutions from the Exchange without desired result.
Right now if you click the submit button, the form is submitted immediately without going through the validation steps. My desired result: Submit button is pressed, form is checked by the validator. If all is good, a confirmation box (return confirm) appears asking the user to click OK or Cancel. If they click OK, the form is submitted and the Submit button is disabled.
<form action="new4.asp" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return Form1_Validator(this)">
<input type="submit" name="submit1" onClick="this.disabled=true;">