The remote validation isn't customizable, so having two server methods is the easier way to go. You're welcome to file a ticket for this: http://dev.jquery.com/newticket (requires registration)
Jörn On Tue, Nov 18, 2008 at 4:25 PM, shapper <[EMAIL PROTECTED]> wrote: > > Hello, > > On a Register form I am using remote validation to check if the > username already exists. > > But on a RecoverPassword form the error will be if the user is not > found. > > Basically, in both cases the remote method is the same: > UserExists returns true if the username exists or false otherwise. > > But in Register form the error message is displayed UserExists returns > true and in RecoverPassword the error is displayed if UserExists > returns false. > > Do I need to create to methods or is there a way, in Jquery validate > method, a way to switch from true to false as the rule to display the > error message? > > How should I do it? > > Thanks, > Miguel >