SCRIPT5007:无法获取属性“SetReturnValue”的值:对象为空或未定义 [英] SCRIPT5007: Unable to get value of the property 'SetReturnValue': object is null or undefined
问题描述
SCRIPT5007:无法获取属性SetReturnValue的值:对象为空或未定义
当我点击一个flash对象中的一个按钮来调用一个函数时,会发生这种情况。 Flash文件中没有任何按钮在IE中工作,但在其他浏览器中完美无缺。有人有主意吗?我搜索了一下,真的无法从答案中找出答案。
网址是 http://capitolomaha.com/reservations/
任何帮助是非常赞赏,这是令我困惑的如此糟糕。 http://msdn.microsoft.com/en-us/library/gg622942%28v=VS.85%29.aspx
基本上,如果您的Flash组件嵌入了带有嵌入标记回退的对象标记,并且对象标识和嵌入名称相同,则IE9将中断ExternalInterface调用。
最简单的解决方法是告诉ie9在IE8标准模式下呈现您的页面。
要做到这一点,插入元素:
<! - 启用IE8标准模式 - > ;
< meta http-equiv =X-UA-Compatiblecontent =IE = 8>
否则,您可能只想使用对象标记或仅使用嵌入标记。
I have a page that works perfectly in all other browsers but breaks in IE. The error from the debugger is:
SCRIPT5007: Unable to get value of the property 'SetReturnValue': object is null or undefined
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.
The web address is http://capitolomaha.com/reservations/
Any help is much appreciated, this is confusing me so bad.
See http://msdn.microsoft.com/en-us/library/gg622942%28v=VS.85%29.aspx
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.
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屋!