[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
frameset.
on the nav page use links like:
<a href=frameset.cgi?pageName.html target=_top>
frameset.cgi looks like so
#!/usr/bin/perl
if($ENV{'QUERY_STRING'}){
$url = $ENV{'QUERY_STRING'};
}else{$url="main.html";
}
print "Content-type: text/html\n\n";
print qq~<frameset cols="25%,*">
<frame name="nav" src="nav.html">
<frame name="body" src="$url">
</frameset>~;
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.
>http://www.oed.com/public/tour/
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?
keith
More information about the thelist
mailing list