Solved

Replacing Two frame pages with one click in V3

Posted on 1998-12-17
3
141 Views
Last Modified: 2010-04-09
Is there a way for one link in a 3 frame page to replace pages in the two other frames? (Maybe without Java so IE3 will do it too)

Thanks!
0
Comment
Question by:guadalupe
3 Comments
 
LVL 3

Expert Comment

by:czpczp
ID: 1840733
What I've done in the past was have the link simply reload the same page but using different html code for each frame.
0
 
LVL 6

Expert Comment

by:PBall
ID: 1840734
1. Using META HTTP-EQUIV=Refresh (supposedly)

Someone (in this site) hinted that you can attached a TARGET clause to the META command (I've not confirmed this)
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=_URLHere" TARGET="_FrameName">

If the method does work, you can set up chain reaction.
The original link say in Frame3 when clicked will update Frame2

<a href='a.html' target=Frame2>

In a.html, add:
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=b.html" TARGET="Frame1">

which will in turn update Frame1 with b.html when a.html is loaded into Frame2.

2. Using JavaScript (IE3 does JavaScript well, they called it JScript)

<script>
function fupdate( url1, url2) {
  //replace frame1 and frame2 with the real frame names

  parent.frame1.location.href= url1;
  parent.frame2.location.href = url2;
}

<a href='javascript:fupdate("b.html","a.html")'>Update the other frames</a>

or

<input type=button value='update' onClick='fupdate("b.html","a.html")'>

See:
http://www.district125.k12.il.us/java/jsintro/part3/part3.htm#js
for more detail.
0
 

Accepted Solution

by:
jbarta earned 50 total points
ID: 1840735
For a JavaScript solution look here:
  http://junior.apk.net/~jbarta/tutor/frames/load_two/index.html

For a non-JavaScript solution look here:
  http://junior.apk.net/~jbarta/temp/2frames/master.html

Which to use? For simple pages the non-JavaScript solution is good.
If you want to get more complex and make your pages jump through
hoops and do backflips, use the JavaScript based example as a beginning
reference.

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
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 code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

758 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

24 Experts available now in Live!

Get 1:1 Help Now