I have this example http://tinyurl.com/nay2rnr
I am trying to validate asynchronously the username. So on changeValue 
of that field I call a function that asynchronously validates the 
username and if it is invalid it throws an error. Unfortunately since 
the call is asynchronous, when the function returns the caller has long 
ended so there is no one to catch the exception. How can I handle the 
exception?

I know I can handle the valid state of the item right there in the async 
function but I want to know what is the proper way to handle 
asynchronously the exception.

Also how can I use that function in a DRY way? The closer I came up is 
this http://tinyurl.com/o2r56zv but when I press send, even if the field 
is invalid I get "You can send" first and later I get "Nope..."

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to