Problems with frames
I need a hand with a small problem that is bugging me in a big way and I think it can be solved possibly by using javascript.
I have a site that loads a frame layout (index.htm) this frame then loads two children banner.htm (in the banner frame) and main.htm (in the viewer frame). When the page and children finish loading main.htm redirects to a PHP script that displays random URL's in the Viewer frame. So the effect is that every time somebody goes to the page they see a random page from a list specified
within the PHP script (the random links are not within my domain and can be anywhere or anything on the net)
I want to put a link in banner.htm that will close the frameset and display the random URL in Viewer full screen as if the user went there directly. It isnt possible to drop the random URL into a variable and it isnt possible to simply use a _TOP link as I dont know what page the user is viewing.
Has anybody got any clues on this one??? And I know frames are evil but its the only way I can think of doing this
The page I am talking about is http://gd.project77.net/games/, if you go there you will see a small black bar at the top (banner.htm) and that is what I want to close using the "Close RandomPortal Bar" link.
WiseBuddha posted this at 16:48 — 1st March 2001.
They have: 7 posts
Joined: Feb 2001
If this helps anybody to help me any I have found the following Javascript that does the job exactly as I need it to :
Problem is that only works if the page hasnt redirected, as when the redirection has taken place I get a security error
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.