Sync Validation

1
2
3
if name is null 
    input is invalid

Async Validation

1
2
3
4
5
6
7
call webSvc.validate(inputs, callback)

function callback(status) {
    if (status is invalid)
        // do something 
}