A question concerning frames

i want to build a site using frames so that the upper frame will remain static and the lower frame will
Be active.
The code should be something like this :

<HEAD>
<TITLE>my page </TITLE>
</HEAD>
<FRAMESET ROWS="16%,*">
 <FRAME NAME="toolbar" SRC="toolbar.html">
 <FRAME NAME="g.u.y" SRC="guy.html">
<NOFRAMES>
<BODY>
In the upper frame I have buttons (I called it toolbar.html) and everytime I press on one of the buttons, the upper frame should remain and only the lower frame should change. Instead  I get
Always the opposite, the lower frame remain unchanged and the upper frame where the buttons are
Changed.  how can i change this ?
dsmarketAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dvd99Commented:
In your links on the top page toolbar.html you need to add this to your links target = "g.u.y" for example
<a href = "http://yoursite.host.com/page2.html" target = "g.u.y">
The change will be in the main window!
Is that what you wanted?
0
dsmarketAuthor Commented:
Sorry but this question related to java script ,as I have a java script inserted.
So I have to change the "location" of the question.
0
robbertCommented:
parent.frames["g.u.y"].location = "myFile.htm"

or;

parent.frames[1].location = "myFile.htm"

Tip; change g.u.y to guy; then you can use syntax as;
parent.guy.location


You should not have rejected dvd99's answer, since you did not give complete info on the criteria for an answer accepted. You could have suggested him to clarify his answer based on the new facts, instead.

(Another question of you having the same scope can be found at http://www.experts-exchange.com/jsp/qShow.jsp?ta=javascript&qid=10264068 .)
0
SaxonCommented:
First condition is to give a name to your frames (you did it)
i.e.:
<HEAD>
<TITLE>my page </TITLE>
</HEAD>
<FRAMESET ROWS="16%,*">
<FRAME NAME="toolbar" SRC="toolbar.html">
<FRAME NAME="guy" SRC="guy.html">          I don´t know if g.u.y. will work
<NOFRAMES>
<BODY>

Then you have to set the target as below:
<a href="your.html" target="guy">Your link</a>
<a href="my.html" target="guy">My link</a>

It´s it!

In your case (two frames only) its possible this way too:
<head>
 <title>What you need!</title>
 <base target="guy">
</head>
This way, all links will be opened in frame guy.

cu

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.