:: Home >>


Generic HTML element class.


 var obj = new AW.System.HTML; 


Parent Classes:


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.


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");

See also

AW.System.Control class


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

Comments will appear on this page and in the main forum.


Recent changes:

2.5.0 - 2.5.6
2.5.0 - 2.5.5