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


spacer

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

home / experts / html / tutorials / 15 / 2

index123456

Tutorial 15: You've been Framed, Part II

Biz Resources
Contact Management Software
Domain Name Services
Internet Security
Developer News
MicrosoftÂ’s Automated Agent: Can We Talk?
Borland Finally Sells CodeGear
Red Hat Heads For The JON 2.0

Frames and robots don't mix

Many of you frames fans out there will probably have thought "So what, I only want to link to my pages from inside my site, and all the pages in my site use the same frameset. This is not really a problem." Let's put aside the actual problems of having a large site of say, several hundreds of documents which all appear in one frameset. Imagine the following scenario:

You've just put your brand new framed site on the Web and promptly ordered a few of your favourite search engines to index it so people can actually find it. The search engine robot crawls through your site. Presumably, it undesrands frame syntax (most search engines do these days) and indexes all the pages linked to from the frameset document. It promptly indexes the contents of the "Home" page. A user comes along, inputs the appropriate search terms and, hey presto!, your home page is the first result returned. Good news. But how will the search engine link to your page? Oops. It can't.

Frames and bookmarks don't mix

There are many more problems associated with this situation. Most browsers allow users to "bookmark" URLs for easy access. What URL will the browser bookmark? The frameset, or the current frame? If it's the frameset, then they only get the home page. If it's the current frame, they lose the sidebar (or could accidentally bookmark the sidebar alone). Granted, Internet Explorer 5.0 works around this problem by storing frame state information in its "Favorites," but that's just one version of one browser, and you still have all the other problems mentioned above.

Frames and fragments don't mix

And if you thought linking to documents was the only problem with frames, think again. What happens to using document fragments as hyperlink targets? Let's say you have a document called products.html that is meant to go into the main frame, and somewhere inside it you have something like the following:

<H1><A NAME="moronsserver">M.O.R.O.N.S. Server</A></H1>

You obviously want to be able to link to this part of the document with a URL like http://www.acme.com/products.html#moronsserver. But you can't, because once again, you lose the sidebar.

Frames and titles don't mix

Another minor gripe with frames has to do with the way most browsers work. Usually, you get to see the title of a document in the title bar of the browser window. We've already explained why titles are important in order to identify documents. When you're browsing through a framed site, however, you only get the title of the frameset, not the individual frame you're looking at.

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

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
Software Engineering for Ajax · Perl Pragma Primer · Implement Drag and Drop in Your Web Apps: Part 2
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
SQL Server 2005 Express Edition - Part 22 - Upgrading from Microsoft SQL Server Desktop Engine (MSDE) · Vyatta: Downgrades that Pay Off · NetMotion Brings Cross-Network Support to Wireless VoIP

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