Validation Plugin Server-Side Message Support
I've got an AJAX call which can return several different response messages from the server based on the kind of failure which occurred.
Is there any way with the existing plugin framework to get this working?
My current attempt goes something like this:
1. add a custom method with addMethod
2. tie this custom method to my field
3. in the custom method inject the markup into the DOM where i need it in the same manner as validator plugin would have done later.
4. And now I want to ignore the rest of the processing by the plugin which will place it's own label/msg based off of my return value of true or false. I am currently trying to avoid this by overriding the errorPlacement() method but am getting mixed results.
Anybody done this before?