spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / html / tutorials / 15 / 3

index123456

Tutorial 15: You've been Framed, Part II

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

Frames stay around

Another often-encountered gripe I get from a lot of readers is that when you load a new document in a frame, it's not easy to change more than one frame at once. This is the reason I set some of the exercises in the last tutorial. Imagine the following frameset:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
 "http://www.w3.org/TR/REC-html40/frameset.dtd">
<HTML>
<HEAD><TITLE>M.O.R.O.N.S. White Paper</TITLE></HEAD>
<FRAMESET ROWS="20%,*">
 <FRAME NAME="toc" SRC="toc.html">
 <FRAMESET COLS="20%,*">
  <FRAME NAME="subtoc" SRC="subtoc1.html">
  <FRAME NAME="text" SRC="sec1-1.html">
 </FRAMESET>
</FRAMESET>
</HTML>

This setup could be used to display a large document comprised of several sections and sub-sections. A frame that runs along the top of the window displays a short table of contents with links to each of the sections. Another frame that runs along the left of the window displays a table of contents for the current section, with links to each of the sub-sections, and the remainder of the screen displays the actual text. Neat, huh? Well, it is, until you get to the problem of what the links point to. If I click on the link for Section 2 in the top frame, I want the left frame to change to the table of contents for Section 2 and the main frame to show the first sub-section of Section 2. But you can't do this because you can only link to one document that will appear in one frame. This, once again, is a problem.

index123456

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Working with the DOM Stylesheets Collection · Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Combine BottomCount() with Other MDX Functions to Add Sophistication · Creating a Daemon with Python · The Coming Voice-over-WiMAX Revolution

URL: http://www.webreference.com/html/tutorial15/3.html

Produced by Stephanos Piperoglou
Created: May 28, 1998
Revised: February 25, 1999