Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display message box on screen 1

Status
Not open for further replies.

lorca

Technical User
Dec 20, 2005
64
GB
hello

I was trying to get a recordset value into a message box, which i managed and worked as so (after the user clicks save)

Code:
dim oRSSaveUserMsg, msg_text
set oRSSaveUserMsg = Server.CreateObject("ADODB.Recordset")
getsaveusermsg oRSSaveUserMsg

msg_text = oRSSaveUserMsg.Fields(1)

<script language="vbscript">
''client side code
response.write "msgbox """ & msg_text & """
</script>

however following this code, the page should response.redirect as follows, but now the msgbox does not display at all ?
what i'd really like, on the click of save, is a messagebox that doesn't rely on user cnfirmation (flashes on screen for set time) although an ok only msgbox would be ok

thanks
tony

Code:
Response.Redirect ctsURL("enquiryEmail.asp") & "&EnquiryID=" & lngEnquiry & "&target=EnquirySummary.asp?Sid=" & request("sid")
 
The redirect takes place before the client side code is sent from the server. You'll have to redirect from the client side if you want to display the message box first. You can use either a META tag to do this, or location.href="newpage.htm".

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top