We will be creating a gadget whereby users can make a list of il1\Portant numbers that they frequently call, and also share this number list. can be shared amongst friends network. As users will be providingspecific information about their preferences, we'll be using the UserPref section of the gadget to describe the input fields that will turn into user interface controls when the gadget will run.
Additionally we will also use the "shareable-prefs" feature to make it possible for a gadget's user preferences to be viewed and edited by multiple users. Thus, the gadget can be shared amongst users and they can also view the editing done by each other. To share a gadget's UserPrefs across multiple users, we'll have to add "Optional Feature" in the ModulePrefs section.
To populate the telephone number list along with the person's name, we will be using the list data type in the UserPrefs section. We will define two UserPrefs for name and the corresponding number respectively. In the CDATA section, where the main coding of the gadget is done, we'll fetch both the lists to extract the name and corresponding telephone number. The following is the complete code for the Telephone Keeper app is as follows: Save the gadget file as "telephone_keeper.xml" through the GGE and to get the URL of the file, right click on the name of the file when it is displayed on the top right corner of the GGE window and select "Copy Link Location". When you paste the copied link URL on the browser window, you'll be able to view the xml code of the file. Now you can host your application on the OpenSocial container, which is iGoogle in our case.




Reply With Quote
Bookmarks