[jQuery] Re: problems about jquery.validate
Hi, submit is called after remote validation.it is not good for user experience.it should just update the just field validation info. and another problem is that i can't define the name of the data that to be validation.in remote it is data:{value:value}.In my exists validation program,it not receive a field name as value,and i couldn't to change it,beacause some others programs use it already. understand me?sorry for my english. 2007/11/25, Jörn Zaefferer [EMAIL PROTECTED]: Hi Jack! can jquery.validate use custom validator? And another problem is about email validator,it can't pass validate with my email address [EMAIL PROTECTED] exactly validate email address. Yes, custom validations are possible. Take a look at this and let me know if that doesn't help you: http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidatoraddMethodStringFunctionString I've just added your example mail address to the testsuite and fixed the email validation accordingly. You can get that fixed revision here: http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js Regards Jörn
[jQuery] Re: problems about jquery.validate
Jacky Chen schrieb: Hi, submit is called after remote validation.it http://validation.it is not good for user experience.it http://experience.it should just update the just field validation info. Now, I didn't get that one. Try again? and another problem is that i can't define the name of the data that to be validation.in http://validation.in remote it is data:{value:value}.In my exists validation program,it not receive a field name as value,and i couldn't to change it,beacause some others programs use it already. If I undertand that right, you want to get both the value and the fieldname? That makes good sense to me, I'll add it right now for you to give it a try. Hope at least that helps. Jörn
[jQuery] Re: problems about jquery.validate
Hi Jörn, you misunderstand my meaning.my english is poor,so i don't how to describe my opinion. The first problem is about the code following: stopRequest: function(valid) { this.pendingRequest--; if ( valid this.pendingRequest == 0 this.submitted this.form() ) { jQuery(this.currentForm).submit(); } } after ajax request success,it call the method of stopRequest,and form submit event was fired. In my opinion,don't submit the form,just show the message of the field that invoke remote validation if valid or not.understand me now? And the second problem is about the code following: data: { value: value, name: element.name } In my opinion is like this data:{ element.name:value } and people can add more params to it. I hope i presente that clearly to you. sorry for my poor english again.And thanks your replies.Thank you! 2007/11/29, Jörn Zaefferer [EMAIL PROTECTED]: Jacky Chen schrieb: Hi, submit is called after remote validation.it http://validation.it is not good for user experience.it http://experience.it should just update the just field validation info. Now, I didn't get that one. Try again? and another problem is that i can't define the name of the data that to be validation.in http://validation.in remote it is data:{value:value}.In my exists validation program,it not receive a field name as value,and i couldn't to change it,beacause some others programs use it already. If I undertand that right, you want to get both the value and the fieldname? That makes good sense to me, I'll add it right now for you to give it a try. Hope at least that helps. Jörn
[jQuery] Re: problems about jquery.validate
Hi Jörn, thanks your reply and great works. On 11月25日, 上午3时01分, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi Jack! can jquery.validate use custom validator? And another problem is about email validator,it can't pass validate with my email address [EMAIL PROTECTED] exactly validate email address. Yes, custom validations are possible. Take a look at this and let me know if that doesn't help you:http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidator... I've just added your example mail address to the testsuite and fixed the email validation accordingly. You can get that fixed revision here:http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js Regards Jörn
[jQuery] Re: problems about jquery.validate
Hi Jack! can jquery.validate use custom validator? And another problem is about email validator,it can't pass validate with my email address [EMAIL PROTECTED] exactly validate email address. Yes, custom validations are possible. Take a look at this and let me know if that doesn't help you: http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidatoraddMethodStringFunctionString I've just added your example mail address to the testsuite and fixed the email validation accordingly. You can get that fixed revision here: http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js Regards Jörn