Inserting Google Apps gadgets in a portal

A ga dget is nothing but a mini web app that runs within a simple web page or a portal. The following figure shows two such examples, available in Netvibes, a public portal:

InsGAEcustom code, runningerting Google Apps gadgets in a portal

Two gadgets that run in the Netvibes portal, one for Gmail and one for Google Calendar

Designing gadgets is rather easy. Only HTML, XML, and JavaScript are needed. The HTML code and the JavaScript code (Flash code is another option) are encapsulated in an XML file. It contains three distinct parts:

  • The content (<Content>) is the actual HTML and JavaScript code that contains the whole logic of the gadget
  • The user preferences (<UserPrefs>) define controls that can be used on the gadget
  • The gadget preferences (<ModulePrefs>) that defines such things as the width of the display, its title, or its author

Google proposes a variety of tag libraries and JavaScript code that speeds the development of gadgets for various environments. The following table lists a few examples:

Name of the API or Library

Description

Execution Context

Gmail Gadgets

Allows the design of gadgets that act on the content of mail. They can offer advanced preview features for some audio or video content.

Does not matter

Calendar Gadgets

Allows the design of sophisticated gadgets that use Google Calendar's data and events.

Does not matter

Sites Gadgets

This API allows an aggregation of several external data sources for publication in Google Sites. It allows circumvention of some security restrictions that apply to dynamic web content.

Google Sites

Wave Gadgets

Allows you to design robots and gadgets integrated in Google Wave. Their main purpose is to automate some conversion or translation tasks.

Google Wave

Spreadsheets API

This is for designing gadgets that improve Google Docs or other applications, which use spreadsheet features. It enables designing alternative graphical representations of the content of a spreadsheet or combine the content with other sources.

Google Spreadsheet

A few APIs available for designing gadgets that use Google Apps data

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset