Solved

Replacing Two frame pages with one click in V3

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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 i…
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

724 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