SCRIPT5007:无法获取属性“SetReturnValue"的值:对象为空或未定义 [英] SCRIPT5007: Unable to get value of the property 'SetReturnValue': object is null or undefined
问题描述
我有一个页面可以在所有其他浏览器中完美运行,但在 IE 中会中断.调试器的错误是:
I have a page that works perfectly in all other browsers but breaks in IE. The error from the debugger is:
SCRIPT5007:无法获取属性SetReturnValue"的值:对象为空或未定义
SCRIPT5007: Unable to get value of the property 'SetReturnValue': object is null or undefined
当我单击 Flash 对象中的按钮来调用函数时会发生这种情况.flash 文件中的所有按钮都不能在 IE 中工作,但在其他浏览器中都可以完美工作.有人有想法么?我用谷歌搜索过,真的无法从那里的答案中弄清楚.
It happens when I click a button in a flash object to call a function. None of the buttons in the flash file work in IE but all work flawlessly in the other browsers. Anyone have any ideas? I've googled and really couldn't figure it out from the answers out there.
网址是http://capitolomaha.com/reservations/
非常感谢任何帮助,这让我很困惑.
Any help is much appreciated, this is confusing me so bad.
推荐答案
参见 http://msdn.microsoft.com/en-us/library/gg622942%28v=VS.85%29.aspx
基本上,如果您的 Flash 组件嵌入了带有 embed 标记回退的对象标记,并且对象 ID 和嵌入名称相同,则 IE9 会中断 Flash ExternalInterface 调用.
Basically, IE9 breaks flash ExternalInterface calls if your flash component is embedded with an object tag with an embed tag fallback, and the object id and embed name is the same.
最简单的解决方法是告诉 ie9 在 IE8 标准模式下呈现您的页面.为此,请在元素中插入:
The easiest workaround is to tell ie9 to render your page in IE8 Standards mode. To do this, insert this in the element:
<!-- Enable IE8 Standards mode -->
<meta http-equiv="X-UA-Compatible" content="IE=8" >
否则,您可能只想使用对象标签或仅嵌入标签.
Otherwise, you might just want to use the object tag only or embed tag only.
这篇关于SCRIPT5007:无法获取属性“SetReturnValue"的值:对象为空或未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!