?
Solved

Replacing Two frame pages with one click in V3

Posted on 1998-12-17
3
Medium Priority
?
184 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
[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
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 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

770 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