O'Reilly logo

Programming Social Applications by Jonathan LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required