Resources: Sample Google Gadget

Code Example: Sample Google Gadget
Date Posted: 1/14/2008 10:15:07 AM
Example Type: Other

Introduction
An example of how to create a Google Gadget around MyVox. Gadgets are a great and simple way to create Web widgets that use the MyVox technology.

Documentaion:

Google GadgetsGoogle Gadgets is a service offered by Google that makes it easy to create Web widgets. Once you've created a Gadget, other users can copy the widget to their own Web pages, and your widget will appear in Google's directory of published Gadgets.

The code we're showing you here demonstrates how easy it is to compose a working Gadget if you already have a working Web application that uses MyVox. In the case below, we've pointed the Gadget at a copy of our Hello World application. But all you have to do is change the URL in the "<Content Type" line to point to your application instead of Hello World, and you'll be half way there.

The other half of the work is to take your widget and paste it into Google Gadget Editor. Once you've done this, you can preview your widget to make sure it works and looks the way you want it to, and then you can publish it to the rest of the world. Now other people can find your widget and start putting it into their web pages. Google also makes it easy for you to send your widget to your friends and colleagues.

If you don't have a place to host your own Web application, Google can help you out here too. Instead of creating a gadget that refers to a remote Web page, as we've done here, you can put the entire HTML of your application into the gadget code itself. This way, Google does your Web hosting for you. Doing so is pretty straightforward too, but we'll let Google explain this one for us.

There's much more you can do with Google Gadgets than what we've explained here, so if you want to learn more, check out the Gadgets developer site.



Example Code:





MyVox Sample Code Links