使用 Internet Explorer 时,Rails/Facebooker 应用程序中的嵌套 iframe

发布于 2024-08-20 09:55:33 字数 736 浏览 4 评论 0原文

(我知道这里有一个类似的问题:Getting Nested iframes with Facebooker in iframe 应用程序,但该修复似乎不起作用)

我目前正在使用 Facebooker 插件在 Rails 中开发 Facebook iframe 应用程序。但是,我遇到了一些奇怪的跨浏览器不兼容问题。该应用程序在我的机器上的 Firefox 和 Chrome 中运行良好。在 Internet Explorer 中,每次单击链接时,新框架都会出现在旧框架内(因此您会获得嵌套框架)。在我朋友的机器上,Firefox 也会发生这种情况。在 Safari 中,我收到 Rails 错误消息。

我尝试了各种修复方法,包括使用 Javascript 的解决方法,但似乎没有任何效果。

更多信息:我的应用程序位于 apps.facebook.com/chinesevillebeta/,并从 www.chinese-ville.com 加载页面。奇怪的是,当您访问 www.chinese-ville.com 时,假设您打开了 Facebook 会话,IE 会将您重定向到 Facebook,其中应用程序出现在 iframe 中。另一方面,Firefox 和 Chrome 只向您展示应用程序本身,没有 iframe。这似乎是一个非常奇怪的跨浏览器不兼容性,我在任何地方都找不到记录。

(I know there's been a similar question here: Getting nested iframes with Facebooker in iframe app, but that fix didn't seem to work)

I'm currently developing a Facebook iframe app in Rails using the Facebooker plugin. However, I'm getting some weird cross-browser incompatibilities. The app works fine in Firefox and Chrome on my machine. In Internet Explorer, every time a link is clicked, the new frame appears inside the old one (so you get nested frames). On my friends machine, this also happens in Firefox. In Safari, I get a Rails error message.

I've tried various fixes, including a workaround with Javascript, but nothing seems to work.

More info: my app is at apps.facebook.com/chinesevillebeta/, and loads the page from www.chinese-ville.com. Oddly, when you visit www.chinese-ville.com, assuming you have a Facebook session open, IE redirects you to Facebook, where the app appears in an iframe. Firefox and Chrome, on the other hand, just show you the app by itself, no iframes. It seems like a really weird cross-browser incompatibility that I've not been able to find documented anywhere.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

纸短情长 2024-08-27 09:55:33

不确定这是否有帮助,但可以尝试将 target="_top" 添加到您的链接标签

Not sure if this will help but could try adding target="_top" to your link tags

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文