p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   Using Response.redirect with frames (http://p2p.wrox.com/showthread.php?t=13520)

nuimage May 27th, 2004 05:50 PM

Using Response.redirect with frames
 
I have a major problem. When my users login from default.asp (also a frames page) they are redirected to a frames page for registered users. The problem that I'm having is that I can't get the registered users frame to open outside of main target frame of default.asp. Does anyone know how to redirect so that the new frame target is at the top of the page.


Snib May 27th, 2004 05:54 PM

I don't believe you can do this in ASP. You will probably need write some JavaScript from your ASP.

HTH,

Snib

<><

happygv May 27th, 2004 06:04 PM

Yes, Snib is right, You will have to use a javascript to change the URL so as to load the page outside the frame.

_________________________
-Vijay G
[8]Strive for Perfection[8]

hcweb May 27th, 2004 09:25 PM

I found this post using some javascript to accomplish what you want I think. Hope this helps.

http://forums.aspfree.com/t5783/s.html

You'll have to edit out the html crud in the post though.

DaveGerard May 28th, 2004 08:59 AM

Check out irt.org, they probably have something under there JavaScript/FAQs/Frames section that could help you out.


nuimage May 28th, 2004 12:45 PM

Thanks to all who has responded.


Quote:

quote:Originally posted by nuimage
 I have a major problem. When my users login from default.asp (also a frames page) they are redirected to a frames page for registered users. The problem that I'm having is that I can't get the registered users frame to open outside of main target frame of default.asp. Does anyone know how to redirect so that the new frame target is at the top of the page.



wolfpack391 May 17th, 2007 11:36 AM

Had a similar problem, but since the response.redirect was on the action page for a form submission, I added target="_top" to the form tag. Then, on form submission, the redirect on the receiving action page successfully broke out of the framset and went to a completely new frameset page (or non-frameset page), as desired, rather than opening up in the main frame of the original frameset.


priyappated August 27th, 2008 05:00 AM

Response.Write("<script>window.open("PageName.aspx ","FrameName");</script>")





All times are GMT -4. The time now is 11:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.