1

I'm using Recaptcha ASP.NET control and it works fine on all browsers except IE8. When I'm opening a page with recaptcha it simply is not displayed on page. IE says that there's an error on the page. Here are the details:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Wed, 2 Oct 2013 11:53:48 UTC


Message: Unknown runtime error
Line: 112
Char: 424
Code: 0
URI: https://www.google.com/recaptcha/api/js/recaptcha.js

Maybe someone knows the remedy?

4

1 回答 1

1

简单的解决方法: Google 的 recaptcha js 在 IE 中存在嵌套表问题,请确保

<recaptcha:RecaptchaControl
ID="recaptcha"
runat="server"
PublicKey="your_public_key"
PrivateKey="your_private_key"
/>

嵌套在表中。

附加信息: 在联系表单中添加验证码时,我遇到了同样的问题。在$.widget.innerHTML='<div id="recaptcha_area">'+d+"</div>" d 中包含表格和 tr,而在 IE 中,它对通过 innerHTML 编写表格和/或 TR 不满意。更多信息在这里。只要 recaptcha 代码不在表中,它就没有相同的问题。如果放置是一个问题,您可以通过 css 移动 div

于 2014-03-24T21:01:33.113 回答