:: Documentation >>

control text

Sets or retrieves the text displayed in the control. Does not encode the html controls characters (<, >, ", &) - the text containing correct html markup will be displayed as html.

Syntax

var value = obj.getControlText(); 
obj.setControlText(value);        

obj.onControlTextChanging = function(value){...}; 
obj.onControlTextChanged = function(value){...}; 
obj.onControlTextError = function(value){...}; 

Defined in

control model

Examples

Input (textbox)

var obj = new AW.UI.Input;
obj.setControlText("Some text");
document.write(obj);

Button

var obj = new AW.UI.Button;
obj.setControlText("Search");
document.write(obj);

Remarks

When some of the html controls characters (<, >, ", &) should appear as text - convert them into html entity codes (&lt;, &gt;, &quot;, &amp;).

See also

Control properties: image, link, tooltip

Comments

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