Mail pop-up - Jmail.asp (1 Viewer)

Caspius

Caspius
Local time
Today, 23:11
Joined
Nov 4, 2007
Messages
18
Code:
If NOT blnSpam Then
JMail.Execute
strResult = "Mail Sent."
response.redirect "sent.html"
Else
strResult = "Mail Not Sent."
response.redirect "error.html"
End If
Instead of "response.redirect" is there anyway to put create a simple confirmation box? eg mail success so confirmation box pops up saying "Mail successful click OK to continue".
 

dan-cat

Registered User.
Local time
Today, 23:11
Joined
Jun 2, 2002
Messages
3,433
I was feeling festive so thought I'd answer a question :)

You can use javascript for this kind of functionality - assuming this is script within asp page...


...html here

<%If NOT blnSpam Then
JMail.Execute
strResult = "Mail Sent."
response.redirect "sent.html"
Else
strResult = "Mail Not Sent."
response.redirect "error.html"
End If %>

<script type="text/javascript">
alert('<%=strResult%>');
</script>

...more html


You'll need to ensure not to redirect away from the current page for the javascript to fire.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom