heidloff.net - Building is my Passion
Post
Cancel

Extensions to XSnippets: Widget and Facebook Comments

I’ve implemented some extensions to XSnippets. The first one is a widget that can be embedded in blogs and other web sites. It displays most recent snippets or most popular snippets. It can also be configured to show all snippets from a specific author. Additionally the widget can be customized via styles.

In order to work cross domain without an iFrame it uses dojo.io.script.get and JSONP. This JSONP API can even be used to build your own widget. In the backend an XAgent is used that invokes a managed bean to read the data and return the JSONP. We plan to open source the implementation sometime next week.

Here is how to use the widget:

You can see the widget in action on openntf.org/xsnippets

The second addition are Facebook comments. Take a look at this example.

We also want to have comments that are directly stored in XSnippets since not everyone uses Facebook, but for now it was an easy addition. I’ve only dragged and dropped the Facebook control from the Designer palette onto the XPage which is part of the Extension Library’s Social Enabler plugin.

Featured Blog Posts
Disclaimer
The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions.
Trending Tags