开发者

FBML + jquery Validation + Rails

开发者 https://www.devze.com 2023-01-02 16:19 出处:网络
In my local machine i have a s开发者_如何学Gocaffold that uses Jquery Validation plugin for the field\'s validation.

In my local machine i have a s开发者_如何学Gocaffold that uses Jquery Validation plugin for the field's validation.

Now i want to add that to a fbml facebook application, but i'm haven't been able to load the jquery javascript and the jquery Validation plugin into the app, does anybody now how to do that? or maybe someone could suggest me a better way of doing validation inside a facebook application.

Thanks in Advance

Ernesto Carrión


jquery won't work in an FBML application. Facebook sanitizes any javascript and converts it to FBJS. Some things just aren't allowed. http://wiki.developers.facebook.com/index.php/FBJS

What you would need to do is make your application an iframe application, which is what Facebook is recommending for all new applications. You would then use Facebook Connect/OpenGraph to render FBML. You can then load and use any external libs that you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消