T
T
Tenebrius2015-02-14 12:36:20
JavaScript
Tenebrius, 2015-02-14 12:36:20

How to make friends between recaptcha 2 and ajax?

The site has a feedback form. It works on ajax'e. It is "protected" by the usual captcha, in the text field you need to enter the characters from the picture. When you click the "Submit" button, the data from all filled fields are transferred to the server, where they are processed.

I wanted to update the captcha, because the Google version is more user friendly. But here's the problem. Nothing is entered there. What should be sent to the server to check the captcha?

Haven't figured it out from the official documentation. It says that when submitting the form to the server, an additional parameter with captcha data is added. How to add it manually?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tenebrius, 2015-02-14
@Tenebrius

The answer turned out to be easier than I thought. It was necessary to serialize the form and the desired value would be added.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question