Comet/iFrame 流媒体 Firefox 问题
我正在使用永远框架技术测试彗星应用程序。我在 Firefox 中遇到的问题是,当从 Firefox 发出更新命令时(使用 AJAX post 更新数据库,进而触发数据库侦听器引发一个事件,该事件将脚本标签打印到侦听客户端的 iframe)多个脚本打印,仅处理其中的 1 个或几个,而不是全部。但我可以看到它们都在 iframe 中。
Chrome 甚至 IE6 都不会受到此影响。
但真正的难题是:如果更新是从另一个浏览器触发的,则 Firefox 也会工作,即使它与已打印到 iFrame 中的内容完全相同。
总结一下:如果 Firefox 发出导致更新的 ajax 查询,它不会处理所有脚本标记。 如果另一个浏览器发出 ajax 查询,firefox 浏览器将按其应有的方式处理所有标签。
有什么想法吗?
希望我说得足够清楚。
谢谢
I am testing a comet app using the forever frame technique. The problem I am having in Firefox is that when an update command issued from firefox (using an AJAX post updating a DB which in turn triggers a DB listener to raise an event which prints the script tags to the iframes of listening clients) if there are multiple script prints, only 1 or a few of them gets processed, never all. But I can see that they are all in the iframe.
Chrome and even IE6 do not suffer from this.
But here is the real puzzler: If the update is triggered from another browser, firefox will work, even though it is the exact same content that has been printed out into the iFrame.
So to sum up: if firefox issues the ajax query causing the update, it does not process all of the script tags.
If another browser issues the ajax query, the firefox browser will process all of the tags as it should.
Any ideas?
Hope I was clear enough.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在实施我们的彗星解决方案时遇到了同样的问题。看来 Firefox 一次只能执行一个脚本。最后,我使用了两个 iframe,一个用于长轮询/服务器推送,第二个用于发送到服务器的命令。
I ran into the same issue implementing our comet solution. It apeared that firefox would only execute one script at a time. In the end I went with two iframes, one for the long polling/server push and a second one for commands being sent to the server.