(extends Object)
Object Summary
Creates a cross-browser reference for DHTML objects in sardalya.
One may argue that since HTML DOM is a standard, there is no need for such an object.
Actually, it is true. However, the object provides some additional validation and thus has not been removed from sardalya.
For example, it can construct an object either from the String index of the DHTML element or from the object reference to the DHTML element itself.
exists method checks whether the object really exists or not.
sardalya versions before 1.1.5 was not trusting DOM support, so this object was the spine of its cross-browser compatibility.
Currently, it does not posses such an important role and its code has been simplified considerably after removing all pre-DOM code forks. However, it is still an important part of sardalya.
The rationale behind this simplification, removal of backwards-compatible code in other words, is that it is impossible to generate %100 backwards compatible code. As you try to support non-standard browsers, the code forks, forks and forks again.
However, adhering to standards makes the code forward-compatible. That is, it will work in recent browsers as well as in the future browsers. The code will not become a spagethi. It will be easy to understand, maintain and follow.
Constructor
parameters
elmID - The object reference or String index of the DHTML element.
comments
Generates a cross-browser wrapper for a DHTML object.
___
Methdos
returns
true if the object reference exists, false otherwise.
comments
Checks whether or not the object actually exists.
returns
A reference to the object.
comments
Gets a reference to the object.
returns
The unique index of the object.
comments
Gets the unique identifier of the object.
See Also
None given.
Usage Examples
Comments (0)
You don't have permission to comment on this page.