I use the query form validate plugin (http://jqueryvalidation.org/documentation/) for validating some form fields via remote check, Below is my working demo code:
username: { required: true, minlength: 3, maxlength: 25, remote: "/dir/checkvalue.php" }
The php script echoes just false or true as a string and the validation via the plugin is working fine. For some reasons I've to change the php's output to JSON, so it would be:
{"STATUS":false} or {"STATUS":true}
I don't know how to handle this JSON response in my js plugin conf array - any help appreciated, Thanks in advance :-)