The Wayback Machine - https://web.archive.org/web/20090421053538/http://www.webreference.com:80/html/tutorial15/3.html


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
PHP Middleware Debuts With Zend Server
AT&T Apps Beta Includes Customer Feedback
eBay Details 'Open' App Store Plans

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.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info
Copyright 2009 WebMediaBrands Inc. All Rights Reserved.

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

webref The latest from WebReference.com Browse >
Debugging JavaScript: Understanding JavaScript Error Messages · User Personalization with PHP: User Registration · Shedding Some Light on Lightbox
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Review: Gateway UC7807 · Intel to Host Live Nehalem Q&A; · Hosted Voice Services: Pros and Cons

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

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.