View Single Post
  #2 (permalink)  
Old February 26th, 2007, 08:55 PM
dparsons dparsons is offline
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Thanks for moving your post ^^.

There are 2 secnarios here:

First: You have a layout that is comprised of frames and you want to redirect x frame to a different page based upon something that is happening in the current frame. Lets just assume that you have a layout that consists of 3 frame rows that have the names first, second, and third. Now the user preforms some action in frame 'second' that requires the page in frame 'first' to be changed you would write this script back to the browser:

Dim sJavaScript
sJavaScript = "<script language=javascript>"
sJavaScript = sJavaScript & "parent.frames['first'].location.href='page.asp';"
sJavaScript = sJavaScript & "</scr" & "ipt>"

response.write(sJavaScript)

Second secnario: You have a page layout comprised of a frameset and you need the page to redirect away from your frameset layout to just one page you would use:

parent.location.href='page.asp';

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
Reply With Quote