Forum Moderators: open

Message Too Old, No Replies

Some basic questions

         

malcolmcroucher

12:27 pm on Sep 18, 2008 (gmt 0)

10+ Year Member



Hi ,

I got a few questions which i need help with :

1. What is DOM ?

This is the definition i got from yahoo

The dom module provides helper methods for manipulating Dom elements.

and what are dom element ?

Cheers

Malcolm

Fotiman

1:39 pm on Sep 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



DOM stands for "Document Object Model". It's a way to treat elements of an XML or HTML document as objects. Each browser has it's own implementation of the DOM, but there are specifications provided by the W3 that define what the standard DOM methods should be. One example would be document.getElementById. The getElementById method is a standard method of the DOM.

Yahoo's library includes its own DOM Utility, which provides some methods not available in the standard DOM. For example, the standard DOM model defines a way to get an element by an ID value (getElementById), but does not provide a standard way to get the elements with a particular class (Note, that is coming in a future version of the DOM). The Yahoo UI Library provides a method for doing that: YAHOO.util.Dom.getElementsByClassName.

Hope that helps.