The Wayback Machine - https://web.archive.org/web/20080719221843/http://www.webreference.com/html/tutorial15/4.html


spacer

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

home / experts / html / tutorials / 15 / 4

index123456

Tutorial 15: You've been Framed, Part II

Developer News
Linux 2.6.26 Opens Up to Debugging
Borland Launches ALM Management Tools
Nominations Open for CEO Vision Awards

The other stuff

In addition to all of the above, let's not forget two of the main problems with frames that were mentioned in the previous tutorial: Size and complexity. First of all, adding frames to your site means extra pages.A simple three-framed approach means you need to download three separate documents in order to view a page. There are arguments against this, mainly that you only do it once when the frameset is set up and then have to download only the contents of a single frame every time you load a new document, but as we will see later on this is very rarely the case, as most framed setups require a lot of downloads in order to update more than one frame at a time. Also bear in mind that downloading two small documents takes longer, in some cases much longer, than downloading a single larger one of size equal to the sum of the smaller ones (this has to do with the way that TCP, a protocol used to transfer data over the Internet, works, and is not really worth discussing here).

Also, all the business with link targets can make it easy to mess up and display the wrong document in the wrong frame. This is especially true if you link to a document that is not supposed to appear in a frame and forget to set TARGET="_top" on the link, leaving the user "trapped" in your frames. Even worse, imagine one of the horror stories described above, where a user gets to a document in your site without the surrounding frameset, probably through a search engine, and follows a link with a TARGET for a frame that doesn't exist. The result is a new browser window for each frame, which can't be fun for the user.

Dirty Hacks

OK, now that we've had a look at the massive problems with frames, I'll walk you through some of the methods that can be used to solve them. These are mostly dirty tricks you can play; most of them are inelegant solutions that usually solve only part of the problem and create problems of their own, but if you're forced to deal with frames, you should consider them.

index123456



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Copyright 2008 Jupitermedia Corporation All Rights Reserved.
Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
How to Create an Ajax Autocomplete Text Field: Part 10 · Adding Client Capabilities to Server Controls Using the ASP.NET AJAX Control Toolkit · JavaScript and HTML Tricks
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Palm's Treo Presses On (iPhone Who?) · Toshiba Extends Notebook Line with 5400 and 7200-RPM Drives · Epson Kicks Color Cost to the Curb

URL: http://www.webreference.com/html/tutorial15/4.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.