Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google reCaptcha IE8

Is Google reCaptcha v2 supported in Internet Explorer 8?

If not is there any suitable Internet Explorer 8 compatible captchas?

I am seeing a issue where the reCaptcha code is trying to use the method getContext.

Object doesn't support property or method 'getContext'
like image 476
IanWatson Avatar asked Jun 12 '15 17:06

IanWatson


1 Answers

The code I ended up using to support IE8 was the following.

<!--[if !IE 8]><!--><script src="https://www.google.com/recaptcha/api.js"></script><!--<![endif]-->
<!--[if IE 8]><script src="https://www.google.com/recaptcha/api.js?fallback=true"></script><![endif]-->

The difference being fallback=true is set which reverts back to V1 of recaptcha.

like image 62
IanWatson Avatar answered Oct 11 '22 00:10

IanWatson