FAQ Database Discussion Community


How can i change a Google Recaptcha Width?

css,asp.net,css3,captcha,recaptcha
I try to implement the google recaptcha v1 in a ASPX project, and i use a DLL for that and i have a control validator for all fields of my form. My web site is responsive but i can change the with of my Google recaptcha to become responsive too....

Check if recaptcha2 is filled before submitting the form

javascript,jquery,recaptcha
How to check if the new (ver 2) recaptcha is filled in befor submitting the form? Problem is that this captcha is inside iframe and is not allowing to read ids from it. To clear things out - i don't want to verify the captcha but just check if its...

'I am not a Robot' reCAPTCHA responsive

responsive-design,recaptcha
I'm having trouble making the 'I am not a robot' reCAPTCHA responsive. Making the widths 100% just seems to break it. I have found nothing about responsiveness with the newer better version of the reCAPTCHA plugin with the simple tick box. is there a reason for this or should it...

new google nocaptcha popup

jquery,recaptcha
Im having some difficulties implementing the new nocaptcha from google. What Im trying to do is use it in a popup but for some reason it appears on the page even tho I hide the element. Here is a code snippet. <script> $('#btnMe').click(function() { $('.g-recaptcha').show(); }); $('.g-recaptcha').hide(); </script> <div id="human-check">...

ReCaptcha 2.0 With AJAX

javascript,php,jquery,ajax,recaptcha
I have managed to get ReCaptcha 2.0 working in my website. However, it's only working when I don't use AJAX and I let the form submit "naturally". I want to submit the form with the captcha and alert the user with a success note without refreshing the page. I tried...

Set reCaptcha field as required

jquery,jquery-validate,recaptcha
I use the new reCaptcha with the jQuery Validate plugin. The validation plugin works nice with my form but unfortunately it didn't work with reCaptcha. My attempt to make it work below: HTML: <div class="g-recaptcha" name="recaptcha" id="recaptcha" data-sitekey="XXXXX"></div> Javascript: recaptcha: { required: true } but it didn't worked. Does anyone...

elusive recaptcha bug. Copy code always fails

recaptcha
A very small amount of my users get a captcha that asks them to copy and paste a code, but it always fails for them - while most of the users get the normal one (checkbox) which goes through correctly. Googling only returned three instances of people getting that captcha...

Can I submit a form with google's recaptcha in it from my app?

http,request,authorization,captcha,recaptcha
I'm writing an app which involves letting users to share comments on a website, which has a comment form with Google's reCAPTCHA embeded. I would like to load this page via HTTP and display CAPTCHA within my app, so that user can post comments from my app. Is it easy...

Setting reCAPTCHA Verson 2 set another language other than English

ruby-on-rails,recaptcha
How can I set this in another language, ie:. French I've tried: var RecaptchaOptions = { lang : 'fr', }; Found above here Which does nothing. I couldn't find relevant info under API Reference -> Version 2 on Google Docs for reCAPTCHA Additional information: I'm using this on rails,...

How to integrate Captcha (Recaptcha) for WTForms in CherryPy

python,recaptcha,cherrypy,wtforms,flask-wtforms
I want to use a RecaptchaField() in my WTForms, such as: class MyForm(Form): name = StringField('Your name', [InputRequired(message='Please enter your name!')]) recaptcha = RecaptchaField() # RecaptchaField as provided by Flask-WTF submit = SubmitField('Send') Since I am using CherryPy, I am not sure whether or not I should use Flask-WTF, because...

Can´t validate reCaptcha v2 in modal

jquery,recaptcha,bootstrap-modal
Actually, I have a project who requires a form in a boostrap modal. This modals have a name, email, msg inputs and google recaptcha. I want that when the required inputs are filled and the captcha is not checked, show an error modal, and when the required inputs and the...

reCAPTCHA in a local network machine

captcha,recaptcha
How can I use Google's reCAPTCHA in a test server on a local network? According to the documentation: By default, all keys work on "localhost" (or "127.0.0.1"), so you can always develop and test on your local machine. My virtual machines however are located on non-localhost local IPs (192.168.XXX.XXX), and...

Google's PHP recaptcha in RTL orientation - css issue

php,recaptcha
It appears that styling (or HTML layout) doesn't seem to work properly for PHP recaptcha in RTL orientation (v 1.0): Is it possible to fix this without hacking / manipulating CSS manually? I can't seem to find an option to get back RTL oriented captcha....

Google's new reCaptcha doesn't work on Windows Phone

windows-phone,recaptcha
The recaptcha box isn't displaying on WP8 with official IE mobile browser. Just go with the device (I tried with wp8) to the official demo page: http://www.google.com/recaptcha/api2/demo and you will see that the recaptcha box isn't displaying....

how to get recaptcha client verification parameter g-recaptcha-response after user confirms he is not a robot?

javascript,json,angularjs,rest,recaptcha
I am trying to implement Google recaptcha in a form. The form issues an HTTP post request to a server where it sends the for data as a JSON object. I added Google reCAPTCHA just before the form submit button with the following div tag: <div class="g-recaptcha" data-sitekey="{SITE_KEY}"></div> Also I...

How to check in js that user has checked the checkbox in Google recaptcha?

javascript,jquery,checkbox,recaptcha
I have added the following before end of head <script src='https://www.google.com/recaptcha/api.js'></script> I have added this before end of form <div class="g-recaptcha" data-sitekey="== xxxxxx =="></div> I can see the recaptcha similar to https://developers.google.com/recaptcha/ HOwever, when user presses data without checking the checkbox, the data is submitted. Is there any other code...

Recaptcha into custom PHP form

php,forms,recaptcha
I am trying to add recaptcha into my custom PHP form and am confused about how to do so. Recaptcha requires adding recaptchalib.php into the form, but if I add verify.php then my form will not process, as I am using my PHP file to process my form. <form method="POST"...

Unable to get error codes from ReCaptchaResponse

php,recaptcha
I am currently using the reCaptcha library available here to run reCaptcha on my web site which uses LAMP version 2.2.22, and PHP version 5.4.39-0+deb7u2, on Debian 6.5. My PHP code is as follows. // Recaptcha check $secret = "SomeAlphaNumericGibberish"; $response = null; $reCaptcha = new ReCaptcha($secret); if ($reCaptcha ==NULL){...

stop or interrupt the user from logging in if reCaptcha is still unaccomplished

javascript,c#,asp.net,recaptcha
I'm trying to disable a button inside a login template from c# code-behind, I already tried doing it from javascript method on front-end, but I cant get it to work. See here! Here's what I'm doing: Javascript method: <script type="text/javascript"> var resetCaptcha = function () { alert("Confirmation Expired. Please Answer...

Explicitly Rendering ReCaptcha - Onload Function Not Firing

javascript,html5,recaptcha
From the documentation I understood that in order to change the language of the recaptcha I have to render it explicitly. The problem is, however, that it's not really showing up, and the onload is not even called. When I try to render it automatically it does work. Here's the...

Kentico reCaptcha does not block form submission

javascript,jquery,forms,recaptcha,kentico
I have the reCaptcha FormControl in my WebPart <script src='https://www.google.com/recaptcha/api.js'></script> ...... <div class="form-group"> <label>Please type the word below. If required use the buttons to change or listen to the word.</label> <cms:RecaptchaControl ID="reCaptchaVld" runat="server" data-theme="clean" data-callback="cpCallBack();" PrivateKey="xxxxxxxxx" PublicKey="xxxxxxxxx" data-recaptcha="" CssClass="g-recaptcha" /> </div> I did a test that I filled all required...

Google ReCaptcha 2 Fatal error: Class 'ReCaptcha\RequestMethod\Post' not found

php,wampserver,recaptcha
I'm a google recaptcha v2 on a local machine running wamp. Everything looks fine except it keeps dying when its supposed to validate the form I'm getting this error: Fatal error: Class 'ReCaptcha\RequestMethod\Post' not found in C:\wamp\www\php\contactForm\Captcha\ReCaptcha.php on line 73 I've pretty much copy/pasted the example code from google: if...

use googles new reCaptcha as button +jquery

jquery,if-statement,submit,recaptcha
got some idea, i wrote som contact-formular and want to use the "sucessfull" response as submit-button. I got that idea to check if this statement becomes true: if (grecaptcha.getResponse() != "") { } I just have no idea how? Is there a way to check this statement every second? Would...

ReCaptcha doesn't work when used with Polymer in Firefox and IE

polymer,recaptcha,web-component
For some reason Polymer and recaptcha will on work together in Chrome, Safari, and Opera, but not IE or Firefox. When clicking the checkbox for "I am not a Robot" in Firefox/IE the following error message appears in the console and the captcha/challenge image is never displayed: TypeError: Argument 1...

How to always display google recaptcha in english language?

asp.net-mvc,recaptcha
I am using latest google recaptcha in my ASP.Net MVC project. By default, it takes up the language set in the browser. However, I want it to be displayed always in english. Here is what I have tried so far: My Script for onload: var onloadCallback = function () {...

How to use google's new reCAPTCHA “I am not a robot” in asp .net

asp.net,recaptcha
Hi I would like to use google's new reCAPTCHA in my website. Does anyone has working example in asp .net with codebehind implementation. Thanks...

No Captcha Recaptcha is Not Displaying

recaptcha
I'm upgrading to the NoCaptcha reCaptcha as described on Google's Documentation. I'm using the Automatic Render method. <head> ... <script src="https://www.google.com/recaptcha/api.js" async defer></script> ... </head> <body> ... <div class='g-recaptcha' data-sitekey='PUBLIC_KEY'></div> ... </body> However, it displays like this: Where the Widget should live, it looks like this: It successfully pings https://www.google.com/recaptcha/api.js...

“Not a robot” recaptcha without a
but AJAX instead

javascript,ajax,captcha,recaptcha,html-form
The traditional way of using "I am not a robot" Recpatcha seems to be with a <form> on client-side: <form action="post.php" method="POST"> <div class="g-recaptcha" data-sitekey="6Lc_0f4SAAAAAF9ZA_d7Dxi9qRbPMMNW-tLSvhe6"></div> <button type="submit">Sign in</button> </form> <script src='https://www.google.com/recaptcha/api.js'></script> Then some g-recaptcha-response will be sent to server. However, in my code I don't use a <form> but an...

NoCaptcha returning error invalid-json

json,recaptcha
I integrated Googles funky ReCaptcha NoCaptcha into a simple html5 form. On localhost it is working, but testing online it always returns the error 'invalid-json'. Here is part of my code: $secret = 'TEHSEHCRET'; $recaptcha = new \ReCaptcha\ReCaptcha($secret); $resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']); if ($resp->isSuccess()) { // do some } else...

Working example of new recaptcha with Rails?

ruby-on-rails,ruby,validation,ruby-on-rails-4,recaptcha
Does anyone have a working example of Google's new recaptcha in a Rails app? Every guide I try to follow is either unclear or incomplete, and seems to use a different method. Hand-rolled code would be preferable. Work in Progress: config/environments/production.rb: #... recaptcha_public_key= "[PUBLIC KEY]" recaptcha_private_key= "[PRIVATE KEY]" end config/environments/development.rb:...

ReCAPTCHA always incorrect

php,curl,recaptcha
I have a page with a recaptcha in it, and it had been running without any problem for two months. But now, since a few days, it has been acting weird. I have tried many several times, but the captcha is simply not working, the verification part. Here is the...

Google reCaptcha V2 Implementation VB.net

asp.net,vb.net,recaptcha
Having a hard time getting reCaptcha to validate on my site :( I have tried to find other sources for VB.net implementations, but haven't had much luck. Here is what I have tried... default.aspx.vb Imports System.Collections.Generic Imports System.Linq Imports System.Web Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Data Imports System.Net Imports System.Text...

reCaptcha Integration: Model or function?

codeigniter,recaptcha,mvcrecaptcha
I am working on reCaptcha integration with my project using this tutorial. But what should I do at the fourth step I couldn't understand perfectly and is written below? Add the following function to your MY_Validation class as seen below in the libraries folder. (If you don’t already have one...