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

Exchanging 2 out of 3 frames

Think about Navigation using an Frames in an Internet-Site. One <A HREF ..>-Tag may exchange one frame in the frameset. Or it may exchange the master-document and therefore cause all frames to be exchanged. But is there a way (without scripting) to exchange TWO OUT OF THREE frames? (I know this could also be done by exchanging the master-document. But that would cause the frame that does not get changed to disappear for a few seconds.)
  • 2
1 Solution
I know you say no scripting, but that's basically the only way to go about it.  unfortunately, using HTML you cannot define two targets to a single link.  However, since you're using frames already, you should be able to write a script that is compatable w/ (almost) all of your viewers.  It should be just a simple onClick function to change the URL of the other two frames.
holzAuthor Commented:
Sigh. I was afraid, you would say something like. Of course a script would work. But only when the users enable it. Nevertheless: Thanks.
Michel PlungjanIT ExpertCommented:
1. Have two framesets, one master with two frames and one child with two frames:
<FRAME NAME="FRAMEA" SRC="banner.html">
<FRAME NAME="FRAMEB" SRC="page1and2.html">

<FRAME NAME="FRAMEC" SRC="page1.html">
<FRAME NAME="FRAMED" SRC="page2.html">

then have a link TARGET="FRAMEB"
load page3and4.html:
<FRAME NAME="FRAMEC" SRC="page3.html">
<FRAME NAME="FRAMED" SRC="page4.html">
and so on...

Other method:
2. Change one frame content and embed in that content
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.server.com/cgi-bin/changepage.pl?pagename.html">

and have changepage.pl output the http header
Window-location: otherframe
(or possibly Window-target - I can never remember)
An Alternative to a cgi could be to put this in the header of the second page: <META HTTP-EQUIV="Window-target" CONTENT="FRAMED">

holzAuthor Commented:
Great! Thanks a lot!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

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