austgl / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

reCaptcha IE8 Crashes - "Fail to load style - bubble" #234

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use click on reCaptcha's checkbox using IE8

An error was thrown,
http://gyazo.com/2cd2addcdd3f7e25ff71b3f01a1dadaa

After this error captcha newer stops loading (js is broken - 
http://gyazo.com/57b058138bae7add482479cc8cee60c1);

Code that invokes the recaptcha:

     function invokeReCaptcha() {
            grecaptcha.render(
                        "cplace",
                        {
                            "sitekey": "!!", 
                            "theme": "light", 
                            "callback": function() {
                                validateCaptchaC($('#g-recaptcha-response').val());
                                accept_policy_check();
                            },
                            "expired-callback": function() {
                                validateCaptchaC($('#g-recaptcha-response').val());
                                grecaptcha.reset();
                                accept_policy_check();
                            }

                        }

                    );
            }

            function onloadCallback() {
                 try {
             invokeReCaptcha();                    
                }
                catch (e) {
                   $('#cplace').empty();
                   invokeReCaptcha();
                }
             }
            $(document).ready(function () {
                $.getScript('https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit')
            });

HTML Element:

<div id="cplace" style="margin-left:35%" ></div>

Platform - Salesforce.com, IE 8 NOT in Compatibility Mode (In this mode 
reCaptcha does not show any images at all)

Please provide any additional information below.

Original issue reported on code.google.com by valery.d...@gmail.com on 20 Apr 2015 at 12:18