Frame Problems

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

I really hate working with frames but in this case I don't have any choice. What I need to do is to have a navbar at the top of the page. The middle will be content from another site. When I click on a link in the navbar, I want it to load the page that I clicked on. Right now it loads the page but since it is in the top frame, it loads the whole page in the nav(top) frame. The middle content stays the same. This page will be the only page on the site with frames.

How can I do this?

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

dk01's picture

He has: 516 posts

Joined: Mar 2002

Quote: Originally posted by mairving
This page will be the only page on the site with frames.

I am not sure what you meant by that part of your post but from what I understood I beleive you will need to do 2 things
1) Give your middle frame a name ( ie. )
2) In the link that you want to open in that middle frame put: target="middle"

into the:

therefore giving you:

Hope this helps.
-dk

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

Hmmm, you've confused me with that bit as well ???

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

dk01 is right, you just need to name thef rame put the target reference in the link.

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

What I mean is that the site has several hundred pages. Only one page in the site will be using frames. The other pages will not be using frames at all. I don't want to use frames on any of the other pages so when a link is clicked on in the top frame, it doesn't load the page in the top frame but in a new page.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

target=_top

dk01's picture

He has: 516 posts

Joined: Mar 2002

to set the default target you can use and then just add target="middle" for that single link that won't be using it.
BTW. An example might make it easier for us to help you.
-dk

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.