JQuery Validate Rule not working?

Your validation fails regardless of ajax call status because the value returned from your valid handler is null, not true or false.

Your validation fails regardless of ajax call status because the value returned from your valid handler is null, not true or false. The true or false values are returned by the complete handler of the ajax which is not the same as returning true/false value from your valid function. To solve this issue you would have to either make a synchronous ajax call (I wouldn't recommend it since it locks-up user interface while waiting for the response) or change your validation plugin for some other that supports validation using ajax calls.

Thanks for that, do you think I could hack it as I have 50+ fields. Maybe use a function to set a hidden form field with the value 1 or 0 depending on the geo code result and validate against that? Or will I still be wasting my time.

Thanks – Andy Gee Sep 12 at 10:32 Yeah, that could work. Trigger your ajax call for geo code checking, then in the ajax response handler do whatever you need (mark #address field as valid or invalid based on the response). – WTK Sep 12 at 10:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions