input validation
What's the AW approved way to perform input validation?
kkeller@ign.com
July 4,
var input = new AW.UI.Input;
input.setId("inputA01"); // whatever
input.onControlValidating = function(txt) {
// txt its a number?
if( !(Number(txt)>0) ) return "error"; // return non-0 value to denied
}
input.onControlValidated = function() {
alert('Control Validated, value: '+this.getControlText());
}
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021