Search code examples
ajaxgoogle-gadget

How do I host a Google gadget? How does it work?


I just spent 5 hours by checking Google gadgets websites and FAQs, but I still have no idea how to host a gadget.

What I've figured from reading the Google documentation:

  1. I can write gadgets with XML, JavaScript etc..
  2. Gadgets can be added to iGoogle etc..
  3. Google can host the gadgets for you.
  4. Gadgets can be hosted anywhere else???

All of the above information doesn't answer my question. For instance, with jQuery or Dojo Toolkit, I can download the JavaScript framework and use it. With Google gadgets, I can not find a download link for a framework. Why? Does Google provide its framework? If not, why does the documentation indicate that gadgets can be hosted anywhere? I am totally confused.

A brief explanation or some helpful links are very welcome! Thanks a lot!!!


Solution

  • You can create a gadget defining an xml spec (reference) and host it anywhere you want (ie. your dropbox public folder). The xml will have a Content section with the html for the gadget. There you can include script tags with any js library you want to use (ie. jquery, dojo, your own js files).

    If you want to install the gadget in iGoogle, you need to go to 'Add Stuff' and instead from picking a gadget from the directory, you click on 'add rss or gadget' link and enter the url to your gadget xml file. The container (in this case iGoogle, but could be Orkut, MySpace, etc) will pull your gadget spec and render the gadget.

    Here's a good place to start with gadget development