Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

When an OpenSocial gadget includes a "feature" it is generally requesting a particular JavaScript API to be made available by OpenSocial as the gadget starts. In this article, we look at how we would cog go about creating a new feature for a "learning" API and adding the feature to Shindig and using the feature in a Gadget.

...

When you have everything working, you should see the popup loaded as follows:

Image Added

As a note, since we pugged our alert statement into the Javascript before the Gadget loaded its OpenSocial data and rendered itself, the actual gadget is not yet rendered behind the alert box.

Next up: TBD Adding a Service to osapi and Calling Your New Service From a Feature