Google recaptcha doesn't show in div









up vote
0
down vote

favorite












I use nuxtjs as front end going to put Google recaptcha versi 3 in my site but it always give me google captcha in right bottom, i use recaptcha versi 3



this is my screen shoot
screen shot



i configure code as documention but still doesn't work, this is my script calling recaptcha google put in head section



function onloadCallback() 
grecaptcha.ready(function()
grecaptcha.execute('6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12', action: 'action_name')
.then(function(token)
// Verify the token on the server.
)
)



this is my html



<div class="g-recaptcha" data-sitekey="6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12" data-bind="recaptcha-submit" data-badge="inline" :style=" display: `block` "></div>


i google and found this but still doesn't work for me, where do i miss










share|improve this question



























    up vote
    0
    down vote

    favorite












    I use nuxtjs as front end going to put Google recaptcha versi 3 in my site but it always give me google captcha in right bottom, i use recaptcha versi 3



    this is my screen shoot
    screen shot



    i configure code as documention but still doesn't work, this is my script calling recaptcha google put in head section



    function onloadCallback() 
    grecaptcha.ready(function()
    grecaptcha.execute('6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12', action: 'action_name')
    .then(function(token)
    // Verify the token on the server.
    )
    )



    this is my html



    <div class="g-recaptcha" data-sitekey="6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12" data-bind="recaptcha-submit" data-badge="inline" :style=" display: `block` "></div>


    i google and found this but still doesn't work for me, where do i miss










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I use nuxtjs as front end going to put Google recaptcha versi 3 in my site but it always give me google captcha in right bottom, i use recaptcha versi 3



      this is my screen shoot
      screen shot



      i configure code as documention but still doesn't work, this is my script calling recaptcha google put in head section



      function onloadCallback() 
      grecaptcha.ready(function()
      grecaptcha.execute('6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12', action: 'action_name')
      .then(function(token)
      // Verify the token on the server.
      )
      )



      this is my html



      <div class="g-recaptcha" data-sitekey="6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12" data-bind="recaptcha-submit" data-badge="inline" :style=" display: `block` "></div>


      i google and found this but still doesn't work for me, where do i miss










      share|improve this question















      I use nuxtjs as front end going to put Google recaptcha versi 3 in my site but it always give me google captcha in right bottom, i use recaptcha versi 3



      this is my screen shoot
      screen shot



      i configure code as documention but still doesn't work, this is my script calling recaptcha google put in head section



      function onloadCallback() 
      grecaptcha.ready(function()
      grecaptcha.execute('6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12', action: 'action_name')
      .then(function(token)
      // Verify the token on the server.
      )
      )



      this is my html



      <div class="g-recaptcha" data-sitekey="6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12" data-bind="recaptcha-submit" data-badge="inline" :style=" display: `block` "></div>


      i google and found this but still doesn't work for me, where do i miss







      css recaptcha recaptcha-v3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 11 at 11:18

























      asked Nov 10 at 0:16









      Freddy Sidauruk

      117215




      117215






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          As I see you are using Nuxt, I will provide an example in Vue, the first thing you need to do is add following line in head of HTML code:



           <script src='https://www.google.com/recaptcha/api.js?render=My recaptcha v3 site key'></script>


          Then add an on click function for that button:



           executreRecaptchav3: function () 
          grecaptcha.execute('My recaptcha v3 site key', action: 'action_name' )
          .then((token) =>
          //Store this token somewhere so you can send it to your server
          console.log(token);
          );




          And here you have your token which will be need in server. As for why there is a recaptcha at the bottom it is there because recaptcha v3 is invisible, however it does not mean it is recaptcha v2 invisible captcha, as that is a different one. Recaptcha v3 returns score rather than just telling true/false.






          share|improve this answer




















          • ups sorry i just realize that my provider block me to upload screen shoot, my need is show google recaptcha in div not by clicking eventalmost forgot how do i call in my html ?
            – Freddy Sidauruk
            Nov 11 at 9:22











          • @If you are talking about showing a tick box as recaptcha then that is recaptcha v2, the one you have added is v3
            – Suleman
            Nov 11 at 16:49










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234886%2fgoogle-recaptcha-doesnt-show-in-div%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          As I see you are using Nuxt, I will provide an example in Vue, the first thing you need to do is add following line in head of HTML code:



           <script src='https://www.google.com/recaptcha/api.js?render=My recaptcha v3 site key'></script>


          Then add an on click function for that button:



           executreRecaptchav3: function () 
          grecaptcha.execute('My recaptcha v3 site key', action: 'action_name' )
          .then((token) =>
          //Store this token somewhere so you can send it to your server
          console.log(token);
          );




          And here you have your token which will be need in server. As for why there is a recaptcha at the bottom it is there because recaptcha v3 is invisible, however it does not mean it is recaptcha v2 invisible captcha, as that is a different one. Recaptcha v3 returns score rather than just telling true/false.






          share|improve this answer




















          • ups sorry i just realize that my provider block me to upload screen shoot, my need is show google recaptcha in div not by clicking eventalmost forgot how do i call in my html ?
            – Freddy Sidauruk
            Nov 11 at 9:22











          • @If you are talking about showing a tick box as recaptcha then that is recaptcha v2, the one you have added is v3
            – Suleman
            Nov 11 at 16:49














          up vote
          0
          down vote













          As I see you are using Nuxt, I will provide an example in Vue, the first thing you need to do is add following line in head of HTML code:



           <script src='https://www.google.com/recaptcha/api.js?render=My recaptcha v3 site key'></script>


          Then add an on click function for that button:



           executreRecaptchav3: function () 
          grecaptcha.execute('My recaptcha v3 site key', action: 'action_name' )
          .then((token) =>
          //Store this token somewhere so you can send it to your server
          console.log(token);
          );




          And here you have your token which will be need in server. As for why there is a recaptcha at the bottom it is there because recaptcha v3 is invisible, however it does not mean it is recaptcha v2 invisible captcha, as that is a different one. Recaptcha v3 returns score rather than just telling true/false.






          share|improve this answer




















          • ups sorry i just realize that my provider block me to upload screen shoot, my need is show google recaptcha in div not by clicking eventalmost forgot how do i call in my html ?
            – Freddy Sidauruk
            Nov 11 at 9:22











          • @If you are talking about showing a tick box as recaptcha then that is recaptcha v2, the one you have added is v3
            – Suleman
            Nov 11 at 16:49












          up vote
          0
          down vote










          up vote
          0
          down vote









          As I see you are using Nuxt, I will provide an example in Vue, the first thing you need to do is add following line in head of HTML code:



           <script src='https://www.google.com/recaptcha/api.js?render=My recaptcha v3 site key'></script>


          Then add an on click function for that button:



           executreRecaptchav3: function () 
          grecaptcha.execute('My recaptcha v3 site key', action: 'action_name' )
          .then((token) =>
          //Store this token somewhere so you can send it to your server
          console.log(token);
          );




          And here you have your token which will be need in server. As for why there is a recaptcha at the bottom it is there because recaptcha v3 is invisible, however it does not mean it is recaptcha v2 invisible captcha, as that is a different one. Recaptcha v3 returns score rather than just telling true/false.






          share|improve this answer












          As I see you are using Nuxt, I will provide an example in Vue, the first thing you need to do is add following line in head of HTML code:



           <script src='https://www.google.com/recaptcha/api.js?render=My recaptcha v3 site key'></script>


          Then add an on click function for that button:



           executreRecaptchav3: function () 
          grecaptcha.execute('My recaptcha v3 site key', action: 'action_name' )
          .then((token) =>
          //Store this token somewhere so you can send it to your server
          console.log(token);
          );




          And here you have your token which will be need in server. As for why there is a recaptcha at the bottom it is there because recaptcha v3 is invisible, however it does not mean it is recaptcha v2 invisible captcha, as that is a different one. Recaptcha v3 returns score rather than just telling true/false.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 10 at 21:52









          Suleman

          112210




          112210











          • ups sorry i just realize that my provider block me to upload screen shoot, my need is show google recaptcha in div not by clicking eventalmost forgot how do i call in my html ?
            – Freddy Sidauruk
            Nov 11 at 9:22











          • @If you are talking about showing a tick box as recaptcha then that is recaptcha v2, the one you have added is v3
            – Suleman
            Nov 11 at 16:49
















          • ups sorry i just realize that my provider block me to upload screen shoot, my need is show google recaptcha in div not by clicking eventalmost forgot how do i call in my html ?
            – Freddy Sidauruk
            Nov 11 at 9:22











          • @If you are talking about showing a tick box as recaptcha then that is recaptcha v2, the one you have added is v3
            – Suleman
            Nov 11 at 16:49















          ups sorry i just realize that my provider block me to upload screen shoot, my need is show google recaptcha in div not by clicking eventalmost forgot how do i call in my html ?
          – Freddy Sidauruk
          Nov 11 at 9:22





          ups sorry i just realize that my provider block me to upload screen shoot, my need is show google recaptcha in div not by clicking eventalmost forgot how do i call in my html ?
          – Freddy Sidauruk
          Nov 11 at 9:22













          @If you are talking about showing a tick box as recaptcha then that is recaptcha v2, the one you have added is v3
          – Suleman
          Nov 11 at 16:49




          @If you are talking about showing a tick box as recaptcha then that is recaptcha v2, the one you have added is v3
          – Suleman
          Nov 11 at 16:49

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234886%2fgoogle-recaptcha-doesnt-show-in-div%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Use pre created SQLite database for Android project in kotlin

          Darth Vader #20

          Ondo