Remote validation of jquery validation plugin is breaking in jquery 1.5?
We are using jquery validation plugin in our project. Recently we have upgraded our jquery version to 1.5. It reasonably increased the speed and performance of our project. But remote validations are breaking with this version.
Actually, the remote servlet sending the expected response. But in client side, it was omitted by the script.
Is there any other people with this same issue?
Any idea about, how i can ov开发者_开发知识库ercome this problem?
Any suggestions would be appreciative!
Thanks
The solution of this problem is just in the strong support of ajax protocol by jquery 1.5.
Try to use something like this on the server side of your application(php):
$check = 'true';
header("Content-type: application/json; charset=windows-1251");
$result = $_REQUEST['callback'].'('.$check.')';
echo $result;
To do this in Java
refer this
See https://github.com/jzaefferer/jquery-validation/issues#issue/36
精彩评论