jasonsalas
IS-IT--Management
Hi everyone,
I've got a form taking in information and then passing the form field data to an ASP 3.0 script using the ASPMail component to send mail. What I've learned is that apparently ASPMail verifies that the sender and recipient e-mail addresses specified in the form fields are valid and existing. Failing this, an error message is generated and sent back to the client.
This is pretty cool, however I've found out that the processing time is quit long...about 15 seconds on average. So upon submission, the page appears to just hang, although it does eventually work. I've noticed this has confused my users.
So, what I'd like to do is be able to display a message on the form page saying "Verifying your e-mail addresses..." or something to that extent as the form is submitted so they'll know what's going on. I was thinking of setting the visibility of a <DIV> to true on the client-side after getting an object reference to the form (document.forms[0] and then getting the submit() method), but I'm not quite sure on the JavaScript syntax. I assume it would have to do wth the OnSubmit() event.
Got any ideas?
I've got a form taking in information and then passing the form field data to an ASP 3.0 script using the ASPMail component to send mail. What I've learned is that apparently ASPMail verifies that the sender and recipient e-mail addresses specified in the form fields are valid and existing. Failing this, an error message is generated and sent back to the client.
This is pretty cool, however I've found out that the processing time is quit long...about 15 seconds on average. So upon submission, the page appears to just hang, although it does eventually work. I've noticed this has confused my users.
So, what I'd like to do is be able to display a message on the form page saying "Verifying your e-mail addresses..." or something to that extent as the form is submitted so they'll know what's going on. I was thinking of setting the visibility of a <DIV> to true on the client-side after getting an object reference to the form (document.forms[0] and then getting the submit() method), but I'm not quite sure on the JavaScript syntax. I assume it would have to do wth the OnSubmit() event.
Got any ideas?