IE 表单中的 SWfObject.embedSWF 和 Flash 问题
我正在使用很棒的 Open Flash Chart v 2.0 在仪表板上做一些字符处理。
我的所有图表在 Firefox 和 Chrome 上都能完美运行,但在 IE 上却遇到了巨大的问题。
由于客户端使用 WebForms,我的所有页面都通过 [form] 标记上的母版页进行包围。
当 Flash 对象放入 IE 上的表单标记内时,似乎存在问题。我在谷歌上搜索了很多,试图找到解决这个问题的方法,并找到了swfFormFix2。这似乎适用于已经放置的 [object/embed] 标签。 但就我而言,我正在使用 SWfObject.embedSWF 并且它失败了。
示例代码: swfobject.embedSWF("open-flash-chart.swf", "my_chart", "450", "200", "9.0.0");
<form id="aspnetForm" name="aspNetForm">
<div id="my_chart"></div>
</form>
谁能帮助我吗?
I'm using the great Open Flash Chart v 2.0 to do some char on a dashboard.
All my charts work perfectly on Firefox and Chrome but I'm facing a huge problem on IE.
Since the client uses WebForms all my pages are surronded, via Master Page on a [form] tag.
Threre seems to be a problem when flash objects are put inside a form tag on IE. I've googled a lot trying to find a way to solve this and found swfFormFix2. This seems to work on already placed [object/embed] tags.
But on my case I'm case i'm using SWfObject.embedSWF anbd it falis.
Sample Code:
swfobject.embedSWF("open-flash-chart.swf", "my_chart", "450", "200", "9.0.0");
<form id="aspnetForm" name="aspNetForm">
<div id="my_chart"></div>
</form>
Can anyone help me ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
经过在网上进行大量搜索后,我终于在谷歌群组上找到了一篇帖子,但我现在没有链接,该帖子指示有此类问题的人更新到最新版本的 Flash 播放器。
我们测试应用程序的电脑安装了 Flash Player 9.0.0,我们更新到版本 10.1.100XX(Flash 的最新版本),问题就消失了。
因此,我没有找到一种方法可以在旧版本的 Flash 播放器上实现此功能,但由于我在生产中添加最新版本作为我们系统的要求没有问题,因为这是一个 Intranet 应用程序,所以我很满意这个解决方案。
如果有人知道如何在旧版本的 Flash Player 上实现此功能,请发送答案。
谢谢。
希望这对某人有帮助。
After a lot of searching on the net I finally came accross a post on google groups, wich I don't have the link right now, that instructed people with this kind of problem to update to the latest version o flash player.
The PC we were testing the application had flash player 9.0.0 installed and we did an update to version 10.1.100XX (flash's latest version) and the problem has gone away.
So I didn't find a way to make this work on older versions of Flash player but since I have no problem on adding the latest version as a requirement of our system in production, since this is an Intranet app, I'm happy with this solution.
If someone knows how to make this work on older versions of Flash Player, please send an answer.
Thanks.
Hope this helps someone.
可能会有帮助。
刚刚修复了 IE 中 swfobject.embedSWF( ... ) 的以下问题。
在 flashvars 对象中传递 xml 字符串以供 SWF 解析后,除 IE 之外的所有浏览器都会对其进行处理并显示数据。
奇怪的是,用单引号替换 xml 字符串中的双引号解决了问题。
之后所有主流浏览器都能正确显示 xml 数据提供的内容。
Might be helpful.
Just fixed the following problem of swfobject.embedSWF( ... ) in IE.
After passing xml string in flashvars object to be parsed by SWF all browsers except IE processed it and displayed data.
Strangely enough replacing double quotes in xml string by single quotes solved the problem.
After that all major browsers display content provided by xml data correctly.
您是否尝试过SWFObject 常见问题解答中的解决方案?
引用常见问题解答:
Have you tried the solution in the SWFObject FAQ?
Quoting the FAQ: