Solved

Frames

Posted on 1998-08-11
2
182 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Specific DIV Hyperlink Color 1 39
Hover Gone 16 31
Ninja Form Reformat Bold Subheader for Wordpress site 5 28
css, html 6 31
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now