Class NAJAX_HTML_DOM_ElementById

Description

NAJAX HTML DOM Element By Id Class.

  • version: 0.4.1.0
  • author: Stanimir Angeloff

Located in /extensions/html/classes/DOM/ElementById.class.php (line 34)

NAJAX_HTML_DOM_BaseElement
   |
   --NAJAX_HTML_DOM_ElementById
Method Summary
NAJAX_HTML_DOM_ElementById NAJAX_HTML_DOM_ElementById (string $id)
void blur ()
void focus ()
string getElement ()
string process (string $element)
Variables
Methods
Constructor NAJAX_HTML_DOM_ElementById (line 44)

Creates a new instance of the NAJAX_HTML_DOM_ElementById class.

  • access: public
NAJAX_HTML_DOM_ElementById NAJAX_HTML_DOM_ElementById (string $id)
  • string $id: String that holds the ID of the element.
blur (line 81)

This method removes keyboard focus from the element.

Example:

  1. $content =& NAJAX_HTML::getElementById('content');
  2.  
  3. $content->blur();

  • access: public
void blur ()
focus (line 101)

This method sets focus on the element.

Example:

  1. $content =& NAJAX_HTML::getElementById('content');
  2.  
  3. $content->focus();

  • access: public
void focus ()
getElement (line 61)

Returns the JavaScript name of the element.

  • return: The JavaScript name of the element.
  • access: public
string getElement ()
process (line 120)

Returns the JavaScript code of the DOM element.

You should not call this method directly.

  • return: JavaScript source code for the DOM element.
  • static:
  • access: public
string process (string $element)
  • string $element: The JavaScript element name.

Redefinition of:
NAJAX_HTML_DOM_BaseElement::process()
Returns the JavaScript code of the DOM element.

Inherited Methods

Inherited From NAJAX_HTML_DOM_BaseElement

NAJAX_HTML_DOM_BaseElement::NAJAX_HTML_DOM_BaseElement()
NAJAX_HTML_DOM_BaseElement::process()
NAJAX_HTML_DOM_BaseElement::removeAttribute()
NAJAX_HTML_DOM_BaseElement::setAttribute()

Documentation generated on Tue, 20 Sep 2005 21:39:58 +0300 by phpDocumentor 1.3.0RC3