• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

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 ?
0
dsmarket
Asked:
dsmarket
1 Solution
 
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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now