Solved

Replacing Two frame pages with one click in V3

Posted on 1998-12-17
3
175 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding a countdown to HTA 12 98
Need output in powershell ( Vertical format) 2 34
Selected in an option list 13 27
Asp response.write to clients 6 34
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 is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

733 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