:: Documentation >>

control value

Control's value. Could be used to retrieve the numeric/date value instead of text string. Requires the control format object.

Syntax

var value = obj.getControlValue(); 
obj.setControlValue(value);        

obj.onControlValueChanging = function(value){...}; 
obj.onControlValueChanged = function(value){...}; 
obj.onControlValueError = function(value){...}; 

Defined in

control model

Examples

var date = new AW.Formats.Date;
date.setTextFormat("mmm-d-yy");

var obj = new AW.UI.Input;
obj.setControlFormat(date);
document.write(obj);

obj.onControlValidated = function(){
    alert(this.getControlValue());
};

See also

Control properties: text, format

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