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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to omit popup permission

Status
Not open for further replies.

leifoet

Technical User
Jan 31, 2016
203
BE
In addition to the access for the authorized users, I try to give access for certain pages to other specific users with a specific login (example code below).
To see the specific pages, for each of the created accesses, new users are always asked (once) to unblock the pop-up (for the site).
How can I avoid that question? avoid the popup.
Thanks for tips

Code:
If Request.Form("username")="A" AND Request.Form("password")="B" Then
   Session("uid")="AB"
   url = "AB.htm"
   response.write("<script>" & vbCrLf) 
   response.write("window.open('" & url & "');" & vbCrLf) 
   response.write("</script>")

ElseIf Request.Form("username")="Z" AND Request.Form("password")="Y" Then
   Session("uid")="ZY"
   url = "ZY.htm"
   response.write("<script>" & vbCrLf) 
   response.write("window.open('" & url & "');" & vbCrLf) 
   response.write("</script>")

ElseIf ... Then
...

response.redirect ...



 
You cant remove the question as that is part of the browser security model which client or server side code can't overrule, you could remove the need for the popup and replace it with a message box or modal dialog etc.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top