Namespace SpiderGL.DOM
The SpiderGL.DOM namespace.
- Defined in: dom.js
Constructor Attributes | Constructor Name and Description |
---|---|
The SpiderGL.DOM namespace.
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
<static> |
SpiderGL.DOM.getElementById(id)
Gets a document element object by id.
|
<static> |
SpiderGL.DOM.getElementText(id)
Gets the text of a document element.
|
Namespace Detail
SpiderGL.DOM
The SpiderGL.DOM namespace.
Method Detail
-
<static> {Element} SpiderGL.DOM.getElementById(id)Gets a document element object by id. The returned element object is retrieved by a direct call to document.getElementById(id).
- Parameters:
- {string} id
- The element id.
- Returns:
- {Element} The document element.
-
<static> {string} SpiderGL.DOM.getElementText(id)Gets the text of a document element. The returned text is retrieved by concatenating the text content of internal element nodes.
- Parameters:
- {string} id
- The element id.
- Returns:
- {string} The text contained in the document element.