Re: [qooxdoo-devel] Form validation question

2010-06-15 Thread alexander.volik
Thank you, Martin! -- View this message in context: http://qooxdoo.678.n2.nabble.com/Form-validation-question-tp5161999p5180911.html Sent from the qooxdoo mailing list archive at Nabble.com. -- ThinkGeek and WIRED's Gee

Re: [qooxdoo-devel] Form validation question

2010-06-14 Thread MartinWittemann
Hi, The code in the AsyncValidator is not much different from the timer code. Just replace the timer with an async call to your backend and thats it. And I think its important to do that sync because you don't want the UI to freeze until you server has done the validation. Here is some maybe not

Re: [qooxdoo-devel] Form validation question

2010-06-14 Thread alexander.volik
Martin, I don't need a server code, I want to see only code insight the qx.ui.form.validation.AsyncValidator. I want to check username for existence in database. Should I use asynchronous request to do it? If yes, where should I place a callback function? -- View this message in context: http://

Re: [qooxdoo-devel] Form validation question

2010-06-14 Thread MartinWittemann
Hi, we currently don't have much server code in our demos. Thats why I used a timeout which simulates the async behavior. Currently, there is no time to set up such a demo but you can open a bug report for that if you want to see such a demo. Regards, Martin -- View this message in context: http

Re: [qooxdoo-devel] Form validation question

2010-06-14 Thread alexander.volik
MartinWittemann wrote: > > Have you seen the demo which uses the AsyncValidation? > In the demo there is a timeout instead of a server async server request. Could you write a little real example? -- View this message in context: http://qooxdoo.678.n2.nabble.com/Form-validation-question-tp5161

Re: [qooxdoo-devel] Form validation question

2010-06-10 Thread alexander.volik
Sorry, it seems it was my mistake. I replaced userName.setValid(true) with validator.setValid(true) an it works! -- View this message in context: http://qooxdoo.678.n2.nabble.com/Form-validation-question-tp5161999p5163150.html Sent from the qooxdoo mailing list archive at Nabble.com. ---

Re: [qooxdoo-devel] Form validation question

2010-06-10 Thread MartinWittemann
Hello Alexander, this could have a couple of reasons. Do you have other fields added to this validator, does the callback work? (Where is the callback sync anyway?) And so on... Have you seen the demo which uses the AsyncValidation? Maybe you can see the difference there? Regards, Martin -- View

[qooxdoo-devel] Form validation question

2010-06-10 Thread alexander.volik
Hi guys. I have a question about form validation. My form has a field "username". I want to check if entered username already exists in database. I try to use async validator function. ... var userNameValidator = new qx.ui.form.validation.AsyncValidator( function(validator, value) { var u