Adding Caja to a Gadget

To add Caja capabilities into an OpenSocial gadget, we can leverage the feature to include abilities in the gadget XML specification. We do this by embedding a Require statement for the Caja feature within the ModulePrefs of an OpenSocial gadget.

<ModulePrefs>
 <Require feature="caja" />
</ModulePrefs>

This will include the Caja JavaScript libraries that provide the capability to cajole a gadget’s views.

Note

Caja is a standard feature available within Apache Shindig 1.1.

Get Programming Social Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.