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

Need help displaying a pop-up

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US
[tt]

Morning all, I have this page that can only be accessed if you're are a registered member, if you're not, I'm redirecting to another page. What I'd liked to do is display the pop up below once the redirect is completed reminding the user to register.

Code
<%
if request.cookies(&quot;today&quot;)(&quot;login&quot;) = &quot;&quot; Then
MY POP-UP WINDOW CODE BELOW, but MM_OpenBrWindow gives me an error.
'What would be the correct syntax?

response.redirect &quot;login.asp&quot;
%>




MM_openBrWindow = &quot;mustlogin.asp','new','scrollbars=yes,resizable=yes,width=300,height=300')&quot;


&quot;The most important ingredient in the formula of success is knowing how to get along with people&quot;

Got ASP Error(s)? =
 
Hi,
Pass a querystring to the redirected page,say ?action=popup and then in the redirected page check for this querystring and then popup a window.

eg:) In the first page:
response.redirect(&quot;login.asp?action=popUp)
In the redirected page(login.asp here):

If Request.QueryString(&quot;action&quot;)=&quot;popup&quot; Then
url=&quot;mustlogin.asp&quot;
Response.Write(&quot;<script>&quot;&vbcrlf)
Response.Write(&quot;window.open('&quot; & url & &quot;','new','scrollbars=yes,resizable=yes,width=300,height=300');&quot; & vbcrlf)
Response.Write(&quot;</script>&quot;)
End if

This will open up a pop up window from the redirected page.
Tell me if this was what you were looking for.

Regards,
Manjula
 
[tt]Thanks for the response manjulam.

Theoretically it makes sense, I'll try it as soon as I get my IIS working at home

else

I'll try it tomorrow in the office and will let you know.





Got ASP Error(s)? =
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top