Go Back   Access World Forums > Apps and Windows > Web Design and Development > ASP and ASP.NET

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 12-12-2010, 05:51 PM   #1
Caspius
Caspius
 
Join Date: Nov 2007
Location: UK
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Caspius is on a distinguished road
Mail pop-up - Jmail.asp

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".

Caspius is offline   Reply With Quote
Old 12-25-2010, 08:44 AM   #2
dan-cat
Newly Registered User
 
dan-cat's Avatar
 
Join Date: Jun 2002
Location: KY,USA
Posts: 3,433
Thanks: 0
Thanked 18 Times in 18 Posts
dan-cat will become famous soon enough
Re: Mail pop-up - Jmail.asp

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.
__________________
Pinky has always been there for me
dan-cat is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
E-Mail Report Thru ISP Mail, without Outlook quest4 Modules & VBA 12 07-15-2008 08:39 AM
E-mail/ mail merge/ automation. Almost there...?! mattkorguk Modules & VBA 9 05-29-2008 11:27 PM
Mail once again - Opening 'new' mail-window and export mail adress johndoomed General 2 06-24-2006 06:03 AM
JMail in VBA SteveClarkson Modules & VBA 1 10-14-2005 05:47 AM
Mail Merge E-mail body iazcac Forms 0 01-11-2005 10:35 AM




All times are GMT -8. The time now is 10:55 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Sponsored Links

How to advertise

Media Kit


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World