How can we validate captcha using jquery validation. avoiding post back using ajax? Can anyone please help me on this. Your help would be appreciated.
Thank you.
How can we validate captcha using jquery validation. avoiding post back using ajax? Can anyone please help me on this. Your help would be appreciated.
Thank you.
You really can't do this, because in most cases the image that gets generated on the server-side stores it's CAPTCHA key in a session, which you cannot access directly from the client side.
I don't even want to think of what could be possible from a security perspective if what your asking actually has a solution other than using Ajax.
One of the purposes of the CAPTCHA test is to assess that there is a human sitting at the remote end. If you allow the checking to be done on the client, what's your plan for how the client should tell the server that the verification failed?
How will you prevent that signal from being forged by an attacker?
(Or is it just AJAX you want to replace?)
Hi Razan
If I understand you correctly, you ARE asking for assistance in doing an ajax postback to validate a CAPTCHA test, perhaps just not phrased eloquently.
There is a working example in the jquery docs of how to use remote validation to validate CAPTCHA, this way the validation plugin takes care of not submitting the form if that validation fails and the validation is actually performed on the server. As it should be.
See below:
http://docs.jquery.com/Plugins/Validation#Using_remote_validation_to_help_with_captchas
Hope that helps Razan.