spacer
Yehuda Shiran October 10, 2000
Determining HTML+TIME's Active Elements
Tips: October 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

The HTML+TIME capability in IE 5.5 and up is based on the timeline principle. An element can be either active or non-active at a certain time point. The activeElements collection groups all elements participating in the t:PAR element and are currently active. The following example (based on a Microsoft script) demonstrates the usage of activeElements. When you click the button, we print the active elements along the timeline. Since they come and go, you will get different printout every time you click the button. We iterate through the active elements with the Enumerator object and its four methods: atEnd(), moveFirst(), moveNext(), and item(). Here is the function that prints the active elements of the page:

function printLinks() {
  linkEnum = new Enumerator(parallel.activeElements);
  for (linkEnum.moveFirst(); !linkEnum.atEnd(); linkEnum.moveNext()) {
    alert("Active Element: " + linkEnum.item().id);
  }
}

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Learn more about HTML+TIME in Column 67, Introduction to HTML+TIME.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business