[jQuery] Re: conditional remote validation

2008-11-12 Thread Jörn Zaefferer
About writing custom methods: http://docs.jquery.com/Plugins/Validation/Validator/addMethod Jörn On Wed, Nov 12, 2008 at 7:29 PM, spellingcity <[EMAIL PROTECTED]> wrote: > > In this particular case, for example: > > current email: [EMAIL PROTECTED] > > The field above (sample form field) should o

[jQuery] Re: conditional remote validation

2008-11-12 Thread spellingcity
In this particular case, for example: current email: [EMAIL PROTECTED] The field above (sample form field) should only validate the email address if it is different than the user's current email address of "[EMAIL PROTECTED]". Where is the documentation for a custom method? In the meantime, I

[jQuery] Re: conditional remote validation

2008-11-12 Thread Jörn Zaefferer
How and where do you decide what is valid? Either do it on the serverside, in which case you don't have to modify the clientside logic. Or on the clientside, in this case a custom method that returns (instead of the usual true/false) just a string "dependency-mismatch". That cancels all further val