:: Documentation >>

AW.System.HTML

Generic HTML element class.

Constructor

 var obj = new AW.System.HTML; 

Hierarchy

Parent Classes:
AW.System.Object

Methods

cloneCreates an object clone.
elementReturns the reference to the HTML element.
getAttributeReturns the value of the attribute.
getClassReturns the value of the CSS class.
getContentReturns the named HTML fragment.
getEventReturns the HTML event handler.
getIdReturns the unique ID of this object.
getStyleReturns the value of the CSS style attribute.
getTagReturns the HTML tag name.
initInitializes the object.
refreshUpdates the HTML element.
refreshClassesUpdates the className attribute of the HTML element.
setAttributeSets the value of the attribute.
setClassSets the value of the CSS class.
setContentAdds the static HTML fragment to the object.
setEventAssigns the HTML event handler.
setIdSets the unique ID for this object.
setPositionSets element position (absolute).
setSizeSets element size.
setStyleSets the value of the CSS style attribute.
setTagSets the HTML tag name.
setTimeoutCalls the function after the specified delay.
toStringConverts object to string.

Example

AW allows assembling html markup in 'object-oriented' way -

var obj = new AW.HTML.DIV;
obj.setClass("test", "div");
obj.setAttribute("title", "tooltip text");
obj.setStyle("border", "1px solid red");
obj.setEvent("onclick", function(){alert(this)});
obj.setContent("html", "inner html");
document.write(obj);

See also

AW.System.Control class

Comments

Refresh AW.UI.Input Fanny (3)
setStyle and CSS calc Oddbjørn (6)
multiple events rodrigo talento (6)
Is it possible to change ID onfly Oddbjørn (5)
Are there guidelines for grid event management? Anthony (2)
AW Grid size Russell Belding (2)
No Hyphens in ID John Mason (1)
Can't Display on a Tab Control Kevin (0)
geting value of input object winzter143 (0)
oncellvalidated and background color Michael L (6)
Does obj.refresh() reload the data? Ross Lambert (1)
Changing font in input François DROUHIN (1)
Important! setSize method using porcentage Lucas Moretto (1)
textarea and password type? Eric (10)
what's a content? (2)
AW.Grid.Extended - Refresh method bug BT (7)
Multiple Cells in a Table Row Martin (1)
Input getting renamed??? Jim Hunter (www.FriendsOfAW.com) (2)
AW.HTML.DIV:setClass bug? Eric (3)
API method for grid width/height Mario (3)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5