spacer
Yehuda Shiran June 28, 2000
Implementing ViewLink
Tips: June 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

When working with HTML Components (introduced in IE 5.5), some documents like to talk about a primary document and a document fragment. A primary document is an HTML file that the user opens with a browser. A document fragment is a document defined in an HTC file, that is linked to a primary document by using the viewLink feature. A document fragment is also called HTML Component, DHTML Behavior, and Namespace.

There are two ways to establish a link between a primary document and a document fragment. Using JavaScript, you need to place the following statement within a script in the HTC file:

defaults.viewLink = document;

A ViewLink can also be established in HTML. The following statement will automatically link the root element of the document fragment in the HTC file to the master element in the primary document:

<PUBLIC:DEFAULTS viewLinkContent/>

or:

<PUBLIC:DEFAULTS viewLinkContnet></PUBLIC:DEFAULTS>


People who read this tip also read these tips:

Look for similar tips by subject:


The Network for Technology Professionals

Search:

About Internet.com

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

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger