If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Response.redirect & Popup window problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-04, 10:10
stila stila is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
Response.redirect & Popup window problem

i have a main.htm for user to enter their email address. upon clicking on 'submit' button:

- <form method="post" action="sendmail.asp">
- i would like this actions in sendmail.asp:

1) emailed user's input to me [ successful ]


2) a small pop up window with acknowledge message [ successful ]
3) main.htm remains & refreshes in the browser [ unsuccessful ]

codes:
response.write("<scr" & "ipt>" & vbCrLf)
response.write("open(""msg.htm"",""message"",""wid th=400,height=250,scrollbars=no"");" & vbCrLf)
response.write("</scr" & "ipt>")


In order to have main.htm remains & refreshes in the browser, i add an extra line at the end of the codes:

response.write("<scr" & "ipt>" & vbCrLf)
response.write("open(""msg.htm"",""message"",""wid th=400,height=250,scrollbars=no"");" & vbCrLf)
response.write("</scr" & "ipt>") ]
response.redirect "http://www.xxxxxxxx.com./main.htm"

NOW main.htm refreshes in the browser BUT the acknowledge message doesn't pop up.


Would greatly appreciate any help and advises on this. Many thanks!
Reply With Quote
  #2 (permalink)  
Old 03-19-04, 13:11
hausbro hausbro is offline
Registered User
 
Join Date: Mar 2004
Posts: 6
Is there any way you can change the main.htm to main.asp?

If you can then you could pass a variable in the redirect like:

response.redirect "http://www.xxxxxxxx.com./main.htm?message=show"

Then on the main.asp page you could check for message. If the message = show then have then run the message...if not...don't.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On