IE8 中神秘的谷歌翻译错误

发布于 2024-11-18 17:43:20 字数 519 浏览 5 评论 0原文

使用谷歌翻译脚本: http://translate.google.com/translate_tools

在某些运行 IE8 的电脑上,我收到错误“Element not成立。” Line 183 Char 183.

那些出现错误的电脑总是有错误。
那些没有收到错误的人每次都会完美地加载翻译人员。

事实上,我这里有两台电脑,都运行 IE8 版本 8.0.600.... 一台加载翻译器,另一台则不加载。

http://creative.figleaf.com/sandbox/google_translate_test.html

有谁知道为什么这正在发生吗?或者如何解决该错误?

谢谢

Using the Google Translate script:
http://translate.google.com/translate_tools

On SOME PCs running IE8 I get an error "Element not found." Line 183 Char 183.

Those PCs that get the error always have the error.
Those that don't get the error they load the translate guy perfect every time.

In fact, I have two computers here both on IE8 version 8.0.600.... One loads the translator and one does not.

http://creative.figleaf.com/sandbox/google_translate_test.html

Does anyone know why this is happening? or how to work around the error?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

疯到世界奔溃 2024-11-25 17:43:20

每当我看到同一版本 IE 的两个副本表现不同时,我都会立即怀疑兼容模式。

我的猜测是,其中一个 IE8 实际上是通过运行 IE7 兼容模式来冒充 IE7。 (可能是抛出错误的那个)

要确定我的猜测是否正确,请按 F12 打开开发工具窗口,然后查看该窗口的右上角。在那里您应该看到浏览器模式。如果其中之一显示“IE7”或“兼容模式”,那么您就发现了问题。

Any time I see two copies of the same version of IE behaving differently, I immediately suspect Compatibility mode.

My guess is that one of those IE8s is actually pretending to be IE7, by running IE7-compatibility-mode. (probably its the one which is throwing the error)

To find out if my guess is right, press F12 to bring up the dev tools window, and look at the top right corner of this window. There you should see the browser mode. If one of them says "IE7" or "Compatiblity mode", then you've found the problem.

风轻花落早 2024-11-25 17:43:20

我看到同样的问题,在一台 PC 的 IE8 上有效,但在另一台 PC 的 IE8 上无效。在 IE 中使用开发工具 JScript 调试器,“代码”在以下代码块上中断:

if(d=!o.external||!o.external.googleToolbarVersion||fa(o.external.googleToolbarVersion)<6.2)

在 JScript 调试器中,我能够向 o.external 添加监视,但向 o.external.googleToolbarVersion 添加监视会使调试器崩溃。所以我猜测 googleToolbarVersion 属性由于某种原因不起作用。

希望这有帮助。

I see the same issue, works on IE8 for one PC, but not on IE8 for another PC. Using Developer Tools JScript Debugger in IE, the "code" breaks on the following block of code:

if(d=!o.external||!o.external.googleToolbarVersion||fa(o.external.googleToolbarVersion)<6.2)

In the JScript Debugger, I was able to add a watch to o.external, but adding a watch to o.external.googleToolbarVersion crashes the debugger. So I am guessing the googleToolbarVersion property is not working for some reason.

Hope this helps.

jJeQQOZ5 2024-11-25 17:43:20

我只遇到过奇怪的 ie 问题,很难欺骗问题,通常它们最终会成为 Windows 版本/浏览器版本/服务包组合的组合,并且几乎总是涉及 js。这些机器在这些方面有什么共同点吗?即它们都是 Vista 吗?

在使用相同浏览器的 2 个示例中,Windows 系统选项卡是否有任何明显差异?

你无法控制每个人的计算机 - 例如,如果他们关闭了 JS,它无论如何也无法工作。

I have hit odd ie only, hard to dupe issues, usually they wind up beings a combo of windows version/browser version/service pack combo and almost always involve js. Do the machines have anything in common in those regards i.e. are they all Vista?

In the example of the 2 with the same browser, are there any noticeable differences in the windows systems tab?

You can't control everyone's computer - for example, if they have JS turned off it won't work anyway.

情痴 2024-11-25 17:43:20

对于 IE8,(锚标记)将导致 google 翻译失败,并在 element_main.js 中显示“未找到元素”。向锚标记添加“notranslate”类应该可以解决此问题。

for IE8, (anchor tags) will cause google translate to fail with "element not found" in element_main.js. Adding a "notranslate" class to anchor tags should resolve this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文