Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to update other frame when new document loaded into a frame

Thread Tools

How to update other frame when new document loaded into a frame

Jim Cobban
Posts: n/a
My base frameset looks like:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
<TITLE>Physical Layer</TITLE>
<FRAMESET cols="20%, 80%">
<FRAME src="PhysicalLayerTOC.html" name="toc"/>
<FRAMESET rows="45%, 22%, 33%">
<FRAME src="Title.html" name="foil" frameborder="no"/>
<FRAME src="NavBar.html" name="navbar" frameborder="no"/>
<FRAME src="TitleNotes.html" name="notes" frameborder="no"/>
<P>This frameset document contains:
<LI><A href="Title.html">Title Page for Physical Layer Section</A>
<LI><A href="TitleNotes.html">
Notes for Title Page for Physical Layer Section</A>

PhysicalLayerTOC.html contains links to load the various subdocuments into
the frame names "foil":

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
<TITLE>Table of Contents</TITLE>
<p><b><a href="Title.html" target="foil">Physical Layer</a></b></p>
<p><b><a href="Foil2.html" target="foil">Transmission</a></b></p>
<p><b><a href="Foil4.html" target="foil">Media</a></b></p>
<p><b><a href="Foil6.html" target="foil">Terminology</a></b></p>
<p><b><a href="Foil7.html" target="foil">Telcoese</a></b></p>
<p><b><a href="Foil8.html" target="foil">Topologies</a></b></p>
<p><b><a href="Foil9.html" target="foil">Adaptation</a></b></p>
<p><b><a href="Foil10.html" target="foil">Direct Signalling</a></b></p>
<p><b><a href="Foil11.html" target="foil">Line Driver</a></b></p>

I have a couple of issues I am trying to resolve:

1) Whenever a new document is loaded into frame "foil" I want to load a
corresponding notes document into the frame "notes"
2) Whenever a new document is loaded into frame "foil" I want to update the
previous and next document hrefs in the document NavBar.html

I have tried a number of things, both based upon the O'Reilly book and upon
threads in this and other groups and I just can't seem to get it working. I
am using IE6 on Win XP Home.

For example I have tried the following (from "Foil2.html"):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<BODY LANG="en-US" DIR="LTR" onload="update()">

IE6 detects that the Script is present because the first time I opened
"Foil2.html" it asked for permission to run the code. However the contents
of the "notes" frame do not change, nor do the links in the navbar frame.

FYI "NavBar.html" looks like:

<title>My Presentation</title>
<img src="Images/CommLine.jpg" border=0/>
<center><a href="Title.html" target="foil" name="first">
<img src="Images/top.jpg" alt="First slide" border=0></a>
<a href="Title.html" target="foil" name="prev">
<img src="Images/prev.jpg" alt="Previous slide" border=0></a>
<a href="Foil2.html" target="foil" name="next">
<img src="Images/next.jpg" alt="Next slide" border=0></a>
<a href="Foil11.html" target="foil" name="last">
<img src="Images/bot.jpg" alt="Last slide" border=0></a>
<a href="../layers.html" target="_top" name="home">
<img src="Images/home.jpg" alt="Home page" border=0></a>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
view loaded clip frame-by-frame on PC? asprigoftrig Digital Photography 3 12-14-2005 12:00 PM
Set document loaded by XHR into Frame Adam Ratcliffe Javascript 0 04-16-2005 03:01 AM
java -verbose doesn't show "loaded from" for classes loaded from custom jars in the classpath Udo Corban Java 0 01-23-2004 09:32 AM
Re: how to programatically give assembly loaded from network the same trust as those loaded from local host? Marcelo Birnbach [MS] ASP .Net 0 06-27-2003 11:51 PM