Well, I thought I understood frames.
I've been working with frames for ages but have somehow never had this particular question. I have a page that's set up in 3 frames (small top frame, small left frame, and the right body frame). Inside the body frame, I have an image that I need to link. I need to link it to another similar frameset and change the body of the new frameset at the same time. I'm trying this:
<a href="newframeset/index.html" target="_parent" onClick="top.frames['body'].location='bodydocument.html'">
but I only get the second frameset with its default body (which is not the body frame that I want).
Help would be appreciated!
Phyllis
[This message has been edited by phyllis (edited 11 April 2000).]
Suzanne posted this at 18:37 — 11th April 2000.
She has: 5,507 posts
Joined: Feb 2000
I didn't check out the page or code, but www.irt.org has tutorials on doing two things with one click in frames.
hth,
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
phyllis posted this at 19:25 — 11th April 2000.
They have: 59 posts
Joined: Mar 2000
Hey thanks, I'm going through some of their tutorials now. I'm amazed at how complex this is becoming.
Here is what I am trying to do (exactly) for anyone who might have the time to look at this & give me some hints (in the meantime I'm trying to find this information but it's a lot more difficult than I thought it would be!)
Go to this webpage. If you scroll down inside the middle frame, you will see the McGladrey & Pullen logo. Currently, this logo links to their home page. Here is where I want the link to go, and I can't even tell you how to get there in less than 2 steps:
DOWN WITH FRAMES!
Phyllis
vy22 posted this at 10:09 — 12th April 2000.
They have: 296 posts
Joined: Sep 1999
There is an easy solution. Copy your frameset into another folder and target the image to the index file of your new frameset using the target_self. This opens a brand new frame set in the same window. You can always change the page after that. It is probably an idea to keep the html files in another folder so save confusion.
~Vy~
phyllis posted this at 13:26 — 12th April 2000.
They have: 59 posts
Joined: Mar 2000
I'm afraid I don't follow. I suppose I could create a new frameset that defaults to the frame I want and link to it (is that what you are saying?). In that case, it would need to be in the same folder since there are relative links from all the pages (?). But it seems strange to me that there isn't a way you can force a page into its own frames. Now I will have two sets of the top frame (and eventually quite a few more) which will be a problem if I make edits. Phyllis
[This message has been edited by phyllis (edited 12 April 2000).]
Arielladog posted this at 01:45 — 13th April 2000.
They have: 122 posts
Joined: Jun 1999
Why would you want the framset to come up with a different body?? Anyway, put this in this page http://www.americanfinsvcs.org/buyer2000/
<SCRIPT language="JavaScript">
function refer()
{
if (document.referrer == 'http://www.whatever.com/pageWhatever.html')
parent.body.location = 'http://www.mainpage.com/index.html'
}
</SCRIPT>
Moderate at JavaScriptCity Forums
phyllis posted this at 14:37 — 13th April 2000.
They have: 59 posts
Joined: Mar 2000
Because the information I need to link to is in an ad that's not on the default body page. That's all. Thanks for the suggestion! I haven't used the document.referrer function before. Unfortunately, what I was hoping for (and I guess this just doesn't exist) was a way to open a page and change the frame at the same time. Clearly there's no real way to do that. I'm sure the function you've suggested will work for that instance but, in general, I see no way to target a framed page other than by targeting its default frameset. (Maybe that's why some people don't like frames). Phyllis
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.