:: Home >>

control edit events

Editable controls (input, combo) trigger editing and validation events -

Syntax

obj.onControlEditStarting = function(text){...};
obj.onControlEditStarted = function(text){...};
obj.onControlValidating = function(text){...};
obj.onControlValidated = function(text){...};
obj.onControlEditEnding = function(text){...};
obj.onControlEditEnded = function(text){...};

Parameters

text (string) - the text being edited

Example

obj.onControlValidated = function(text){
    alert(text);
}

Remarks

If you cancel (return non-zero value) onControlValidating event - the focus wil stay in the control and editing will continue.

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