[thelist] bust out of the frames

Keith Davis cache at dowebs.com
Thu May 24 09:17:34 CDT 2001

Paola Kathuria wrote:

> Why's that stupid?  It's the only way to make sure a web page
> gets its own URL.  A bad (and lazy) implementation of frames
> would be where the URL is the same for every page in a site.

Well, not the *only* way....
Any framed site can have correct bookmarks if you use a dynamic

on the nav page use links like: 
<a href=frameset.cgi?pageName.html target=_top>

frameset.cgi looks like so


$url = $ENV{'QUERY_STRING'};
print "Content-type: text/html\n\n";
print qq~<frameset  cols="25%,*">
<frame name="nav" src="nav.html">
<frame name="body" src="$url">

The nav page will reload out of the cache. The frameset will reload from
the server always loading the correct page in the body frame. Bookmarks
will always load the correct pages.


I can't see why you used frames on that site. Since the nav page changes
to correspond with the main page why shouldn't the navigation just be
part of the page?


More information about the thelist mailing list