| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

CBObject

Page history last edited by PBworks 18 years ago


 

CBObject

(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

 

CBObject(elmID)

 

parameters

elmID - The object reference or String index of the DHTML element.

 

comments

Generates a cross-browser wrapper for a DHTML object.

___

Methdos

 

CBObject.exists()

 

returns

true if the object reference exists, false otherwise.

 

comments

Checks whether or not the object actually exists.


CBObject.getObject()

 

returns

A reference to the object.

comments

Gets a reference to the object.


CBObject.getID()

 

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.