magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1998 > 03 > Features  

Dynamic Navigation with DOM

Taking Advantage of The Document Object Model

By Mark McManus

When the World Wide Web Consortium (W3C) introduced their working draft specification for the Document Object Model (DOM), it detailed how Web browsers should deal with HTML, CSS (Cascading Style Sheets), and XML documents. In particular, the specification describes how all document objects should be accessible programmatically. Ultimately, all Web developers benefit because the DOM provides a clearly defined structure to describe a Web page. Thus, tool developers can map internal object models, which means better tools for Web authors. Web authors get an additional benefit: Knowledge of your document structure makes building dynamic, interactive pages easier.

The initial DOM specification was released after the two major browser vendors (Microsoft and Netscape) released their own implementations, so you can be sure that their versions are somewhat different from the W3C specification. However, because the DOM specification is built from recommendations put forward by a number of companies, neither implementation strays too far from the standard.

This article expands on earlier coverage presented in Web Techniques (see "Introduction to DHTML's Object Model" by Chuck White, December 1997), focusing on element containment and structure navigation. After an overview of W3C recommendations on containment, navigation and modification, I'll present a useful example that implements a collapsible table of contents.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2