如何让 jQueryscrollTo 插件在 Facebook 中运行
我似乎无法让scrollTo jQuery 插件在我的Facebook 应用程序中工作。我用它来移动窗口,因为我有一个表格需要在填写时垂直增长。我的代码工作正常,但在 Facebook 环境中不行。
谁能向我解释为什么这不起作用,以及在尝试在 iframe 内移动浏览器“窗口”时是否需要特别注意?
如果有替代解决方案可以绕过使用scrollTo 的问题,我也对此持开放态度。谢谢!
I can't seem to get the scrollTo jQuery plugin to work within my Facebook app. I'm using it to move the window, as I have a form that needs to grow vertically as it is filled out. My code works fine normally, but not in the Facebook environment.
Can anyone explain to me why this doesn't work and if there are generally any special considerations that need to be taken when attempting to move the browser "window" within an iframe?
If there is an alternate solution to the problem that bypasses the use of scrollTo, I'm open to that as well. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这个
http://developers.facebook.com/docs/reference/ javascript/FB.Canvas.scrollTo/
try this
http://developers.facebook.com/docs/reference/javascript/FB.Canvas.scrollTo/
我认为您必须将您的插件与 FB.Canvas.setSize 集成
I think that you will have to integrate your plugin with FB.Canvas.setSize