F
F
fomenko_alexandr2017-08-25 18:32:45
reCAPTCHA
fomenko_alexandr, 2017-08-25 18:32:45

How to refresh data after clicking on google captcha?

Hello masters.
Please tell me, how can I make sure that when I click on the Google captcha, and successfully complete it, without reloading the page, the data is updated?
Do they have some kind of event that "knocks" when a captcha is successfully completed?
I will be very grateful for the answers

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2017-08-25
@fomenko_alexandr

https://stackoverflow.com/questions/31687803/recap...

var myCallback = function(val) { console.log(val); };
grecaptcha.render(
   document.getElementsById('my-recaptcha-placeholder'), 
   {
     callback: myCallback, 
     sitekey: mySiteKey
   });

2 way
<script type="text/javascript">
  var imNotARobot = function() {
    console.info("Button was clicked");
  };
</script>

<div class="g-recaptcha" data-callback="imNotARobot" data-sitekey="key"></div>

Everything above is just copied and pasted from stackoverflow.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question