I'm building a basic contact form on my website using jQuery. When a user clicks a contact us button, the main page dims before a hidden div with the contact form on it fades into view. The user can hit esc or click away from the form to return back to the main site. To send an email, the contact form calls an asp script which uses CDOSYS and can be seen in the attached code snippet. At present, I have not built any validation. My main issue at the moment is that I would like the code, upon the successful sending of an email, to display an onscreen message confirming the message had been sent and then fade out the contact form and fade back in the main website. How can I get the ASP code and jQuery to work together in this way? TIA, Ed
myMail.TextBody="This is a test message by the IT goblin. Please ignore as he will delte it in a bit :)"
'Name or IP of remote SMTP server
Response.Write("your email has been sent!")