Solved

Frames

Posted on 1998-08-11
2
188 Views
Last Modified: 2012-05-04
Supose I have 4 frames like this:

<FRAMESET  FRAMEBORDER="0" BORDER="0" FRAMESPACING="0" rows="50,*">
 <FRAMESET COLS="36%,*" FRAMEBORDER=0 BORDER="0" FRAMESPACING="0">
  <FRAME NAME="headframeleft" SRC="header1.htm"  NORESIZE SCROLLING="no">
  <FRAME NAME="headframeright" SRC="header2.htm"  NORESIZE SCROLLING="no">
 </FRAMESET>
 <FRAMESET COLS="36%,*" FRAMEBORDER=0 BORDER="0" FRAMESPACING="0">
  <FRAME NAME="bodyframeleft" SRC="content.htm" MARGINWIDTH="2" MARGINHEIGHT="2">
  <FRAME NAME="bodyframeright" SRC="result.htm">
 </FRAMESET>
</FRAMESET>

In bodyframeleft I have several links that open a different page in bodyframeright, with the "TARGET=bodyframeright" tag

What I want to know is how I can open another page in headframeright when I click the link in bodyframeleft. That is, open two different pages in two frames at the same time.
Thanks...
0
Comment
Question by:carflores
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 100 total points
ID: 1845196
You have two options:

1. use javascript:
=======================
<script>
function ChangeTwoFrames() {
  parent.frames['bodyframeright'].location = 'anotherpage1.htm';
  parent.frames['headframeright'].location = 'anotherpage2.htm';
}

</script>

<a href="Javascript:ChangeTwoFrames()"><clicke here</a>

===========

2. redefine your frames into 3 seperate html files
==================================================

frame 1:

<FRAMESET  FRAMEBORDER="0" BORDER="0" FRAMESPACING="0" rows="50,*">
      <FRAME NAME="headframe" SRC="headerframe.htm"  NORESIZE SCROLLING="no">
      <FRAME NAME="bodyframe" SRC="body.htm"  NORESIZE SCROLLING="no">
</FRAMESET>

frame 2:

<FRAMESET COLS="36%,*" FRAMEBORDER=0 BORDER="0" FRAMESPACING="0">
      <FRAME NAME="headframeleft" SRC="header1.htm"  NORESIZE SCROLLING="no">
      <FRAME NAME="headframeright" SRC="header2.htm"  NORESIZE SCROLLING="no">
</FRAMESET>

frame 3:

<FRAMESET COLS="36%,*" FRAMEBORDER=0 BORDER="0" FRAMESPACING="0">
      <FRAME NAME="bodyframeleft" SRC="content.htm" MARGINWIDTH="2" MARGINHEIGHT="2">
      <FRAME NAME="bodyframeright" SRC="result.htm">
</FRAMESET>


Now each frame has a name and each frameset has a name and you can refer to that with the "target" option:

<a href="anotherframeset.htm" target="bodyframe">
0
 

Author Comment

by:carflores
ID: 1845197
I used JavaScript option.... Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question