简体   繁体   English

使用FBML的Facebook应用程序中的EXTJS网格

[英]EXTJS grid within a Facebook application that uses FBML

Greetings. 问候。 I'm trying to add an EXTJS grid to my facebook application. 我正在尝试将EXTJS网格添加到我的Facebook应用程序。 The facebook application was configured to use FBML. facebook应用程序已配置为使用FBML。

The EXTJS javascript works perfect when I run it from my apache server but when I add the same code to the my facebook application the grid does not render. 当我从apache服务器运行EXTJS javascript时,它运行完美,但是当我将相同的代码添加到我的facebook应用程序中时,网格无法呈现。 The renderTo is set to the following: renderTo设置为以下内容:

renderTo: document.body

When I do a view source I see my EXTJS code but again it does not render. 当我执行一个视图源时,我看到了我的EXTJS代码,但同样也没有渲染。 Is this possible or do I need to switch my facebook app to be iframe based? 这可能吗,还是我需要将我的Facebook应用切换为基于iframe?

Thanks 谢谢

Yes, you'll need to switch from FBML to iFrame(and use xFBML with the FBJS API) Then, it should work :) As far as i know, in FBML application there is no body tag. 是的,您需要从FBML切换到iFrame(然后将xFBML与FBJS API一起使用),然后,它应该可以工作了:)据我所知,在FBML应用程序中没有body标签。 I think FBML is to be deprecated from Facebook. 我认为FBML将被Facebook弃用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM