白屏死亡 jquery load() 带有 swf 的 html 文件
我一直在寻找这个问题的答案,我希望有人能找到答案,或者至少提供有关如何避免它的提示。
我通过 jQuery load() 方法将静态 HTML 文件加载到容器中。这个静态 HTML 文件有一个加载 swf 的脚本。当我加载该特定文件时,出现白屏死机(WSOD),页面爆炸,房间里的每个人都惨死了。
当 swf 存在时使用 jQuery 包装方法(wrap、wrapOuter 等)时,我也遇到过这种情况。
似乎使用具有 swf 对象的容器操作 DOM 会导致此问题。有谁有解决方案或方法可以防止它发生?
谢谢!
I've looked high and low for an answer to this and I'm hoping someone has an answer, or at least a tip on how to avoid it.
I'm loading a static HTML file into a container via the jQuery load() method. This static HTML file has a script which loads a swf. When I load that particular file, I get the white screen of death (WSOD) and the page explodes and everyone in the room dies a horrible death.
I've had this happen also when using the jQuery wrap methods (wrap, wrapOuter, etc.) when a swf is present.
It seems manipulating the DOM with a container that has a swf object causes this. Does anyone have a solution or a way that I can prevent it happening?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我唯一一次遇到白屏死机是因为 JavaScript 崩溃并且 SWF 从未加载。
安装适用于 FireFox 的 HTTPFox 并查看是否正在加载 SWF。
最常见的错误是缺少关闭
会导致浏览器无法渲染 HTML
The only time I get white screen of death is because there is a JavaScript crash and the SWF never gets loaded.
Install HTTPFox for FireFox and see if the SWF is being loaded at all.
Most common bug for this would be a missing closing
This causes the browser not render the HTML