:: Home >>

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

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

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData