Study links
- API Overview - Gadgets API - Google Code
- Getting Started: gadgets.* API - Gadgets API - Google Code
- Developer Tools - Gadgets API - Google Code
- iGoogle Developer's Guide
- OpenSocial Tutorial - OpenSocial Making an OpenSocial API
- Writing Your Own Gadgets - Gadgets API - Google Code
- Development Fundamentals - Gadgets API - Google Code
- List of development sites: Site Directory - Google Code
- Development Fundamentals - Gadgets API - Google Code
Tools:
1. Coding it: source: Getting Started with Spreadsheets Gadgets
- The Google Gadget Editor (GGE) lets you to edit, save, load, and publish gadget code. It is used in this very page to let you interact with our example code. The GGE is itself a gadget (meta!).
- Google Home Project Hosting is another option for getting your code online.
- If you prefer a different editor or hosting provider, feel free to use it.
Turning an Existing Web Page or Application into a Gadget
(source:Development Fundamentals - Gadgets API - Google Code)You can turn an existing web page or application into a gadget by following these guidelines:
- Strip the
,, andtags (in other words, just provide the HTML content itself). This guideline only applies totype="html"gadgets. It does not apply totype="url"gadgets.- For onload events, use
gadgets.util.registerOnLoadHandler().- If the gadget requires login, use a URL content type. See Writing Gadgets that Require Login or Cookies for possible gotchas. Note that HTTPS gadgets issue "mixed content" warnings under Internet Explorer, which can be annoying for users.
- Make any user interface changes necessary to fit your page or application into the small gadget space. For hobbyists and professionals building prototypes,
makeRequest()can be used to proxy the content. For commercially developed gadgets, we recommend simply creating a new, small page and usingtype="url"to point to it.