2016-03-02 19:06 | IT / Coding / How-To | javascript, jquery, ajax, google, recaptcha, security, spam, error
Google reCAPTCHA with AJAX, grecaptcha.render() error: grecaptcha is not defined
I faced with a strange error message when implemented a Google reCAPTCHA Version 2.0 based web site protection using AJAX.
There is a sample form containing a DIV with the id = "g-recaptcha" to display reCAPTCHA widget:
After loading form by jQuery's ajax, I tried to render and display the reCAPTCHA widget by calling grecaptcha.render() API function.
It failed with the error message: grecaptcha is not defined
The workaround to get it work:
1. Specified callback function in Javascript resource as given in Google reCAPTCHA documentation
2. The rest of the code is self-explanatory )
Hope this helps.
2023 September (1)
2023 August (1)
2019 May (1)
2016 March (2)
2016 February (1)
2014 December (1)
2013 May (1)
2013 March (1)
2013 February (1)
2012 December (2)
2012 October (1)
2011 February (2)
2010 October (2)
2010 July (1)
2010 May (1)
2010 April (1)
2023 August (1)
2019 May (1)
2016 March (2)
2016 February (1)
2014 December (1)
2013 May (1)
2013 March (1)
2013 February (1)
2012 December (2)
2012 October (1)
2011 February (2)
2010 October (2)
2010 July (1)
2010 May (1)
2010 April (1)
IT / Coding / How-To
28147-89 (1), access (1), ajax (1), apple (1), asus (1), benchmark (1), block-cipher (1), c++ (1), cache (1), capistrano (1), centos (2), chrome (1), client (1), clock (1), cntvct_el0 (1), counter (1), counter-timer-register (1), cryptography (1), crystal reports (1), database (4), dbase (1), dbf (1), docker (1), error (7), fedora (2), firefox (1), google (2), gost (1), gost-28147-89 (1), gost-r-34-12-2015 (1), highlight (1), hp (1), html (1), intel (1), intellijidea (1), ireport (1), jasperreports (1), jaspersoft (1), java (5), javascript (2), jdbc (1), jdk (1), jet (1), jetty (1), jquery (2), laptop (1), linux (8), macos (1), magma (1), mongodb (1), ms visual c++ (1), mysql (1), native (1), network (2), openvpn (1), oracle (2), performance (3), postgres (1), postgresql (2), prettify (1), r-34-12-2015 (1), rails (1), ramdisk (2), ramdrive (2), rdtsc (1), rdtscp (1), recaptcha (1), redis (1), rest (1), restful (1), ruby (1), rust (2), security (3), server (2), sidekiq (1), spam (1), spring (1), sql (1), startup (1), subversion (1), svn (1), syntax (1), time-stamp-counter (1), timer (1), tomcat (2), ubuntu (2), update (1), vba (1), web service (1), wifi (1), winapi (1), windows (9)
Other Topics
active directory (1), java (1), jcifs (1), kerberos (1), ldap (1), linux (1), ntlm (1), spnego (1), story (1), ubuntu (1), windows (1)