Jump to content

DOM scripting

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 70.29.208.69 (talk) at 07:00, 10 July 2009 (rm PROD). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The term DOM Scripting refers to programmatically accessing the Document Object Model (DOM). In common usage, DOM scripting implies JavaScript. DOM Scripting has its roots in DHTML, but is more structured. It is the third pillar in the web standards movement.

It has been suggested that DOM Scripting is really no different from DHTML, as they are both accomplished by the same means and using the same tools. This suggestion holds that the creators of DOM Scripting simply wanted a way to distinguish between what they saw as a "bad" style of implementing a dynamic web page and what they saw as a "good" style of implementation. Thus, they named the "bad" style DHTML, and the "good" style DOM Scripting. In truth, there is no practical difference between the two, as any software development paradigm has the capacity to create both "good" and "bad" code simultaneously.

DOM Scripting vs. DHTML

Traditional DHTML

  • uses a scripting language and valid markup (HTML/XHTML/XML/etc.)
  • may be browser-specific
  • may require code forking
  • web only
  • was used with non-standardized markup

DOM Scripting

  • uses a scripting language and valid markup (HTML/XHTML/XML/etc.)
  • can be used with any programming/scripting language
  • aims to be browser independent, is browser independent among standards-compliant broswers
  • web only
  • may degrade gracefully

Books

  • Jonathan Snook, Aaron Gustafson, Stuart Langridge and Dan Webb: Pro DOM Scripting with Ajax, APIs and Libraries, ISBN 1-59059-764-8
  • Jeffrey Sambells and Aaron Gustafson: AdvancED DOM Scripting: Dynamic Web Design Techniques, ISBN 1-59059-856-3 (http://www.advanceddomscripting.com)
  • Christian Heilmann: Beginning JavaScript with Dom Scripting and Ajax, ISBN 1-59059-680-3 (http://www.beginningjavascript.com)
  • Stuart Langridge: DHTML Utopia - Modern Web Design Using JavaScript and DOM, ISBN 0-9579218-9-6
  • Jeremy Keith: DOM Scripting - Web Design with Javascript and the Document Object Model, ISBN 1-59059-533-5

Articles

Experiments