Creating your first iGoogle Gadget

C

Recently at work, we’ve started diving into Google Gadgets.  They are quite fun and really extremely easy to build.  In this article, I’m going to get you started creating your very own Google Gadget.

Sit back and reserve a few minutes of your time and you will be well on your way in no time!

The first thing we need to do is open our favorite text editor.  Create a new file called google.xml.  Inside the file, place the following information to get started:

[code]<?xml version=”1.0″ encoding=”UTF-8″ ?>
<Module>
  <ModulePrefs title=”Hello, World!”
    height=”240″>
    <Require feature=”opensocial-0.8″/>
    <Require feature=”views” />
    <Require feature=”setprefs” />
  </ModulePrefs>
  <Content type=”html” view=”home”><![CDATA[ 

  ]]>
  </Content>
  <Content type=”html” view=”profile”><![CDATA[ 

  ]]>
  </Content>
  <Content type=”html” view=”canvas”><![CDATA[ 

  ]]>
  </Content>
</Module>
[/code]

The following code sets up our basic module.  We create a module, give it a title and a fixed height.  We require a couple of options to provide us with a few capabilities.  Finally we create three blank content areas: “home”, “profile”, and “canvas”.

The home content area gets displayed if our module was embeded on another webpage other than iGoogle.

The profile content gets displayed when viewing the module in iGoogle.  This is the small box that can be dragged and dropped to organize the various modules in your account.

The canvas content area gets displayed when the module is maximized.  When maximized, it takes up the full area inside of iGoogle, minus the left navigation.

To actually have content displayed now, we simply need to populate our different content areas.  Inside of the content areas you can include Javascript, CSS, and HTML.  The sky is the limit!  If you plan to create gadgets with dynamic data, Google offers AJAX helpers to load data in through AJAX.

Enjoy!

Other useful articles

About the author

  • http://www.jouercasino.eu/machine-a-sous/ machine a sous

    I appreciate you for giving such a useful blog. this website was not only knowledgeable but also very artistic too. There are only few professionals who can think to write not so easy stuff that creatively.I look for articles about this topic. I just read through the entire article of yours and it was quite good.

  • http://www.bonus-casino-en-ligne.info/ jouer casino

    thanks so much for this tuto!

  • http://www.paris-pronostics-sportifs.com pronostic sportif

    useful blog it really help me thanks so much!

  • http://fr.casino-lemonade.com/ jeux casino

    Nice post, very useful. And I love your blog. Keep going that way

  • http://www.guide-roulette.net/ roulette en ligne

    your blog is really usefull and your tuto is good thank you!

  • Sobis

    I created iGoogle gadget and use AJAX. On every AJAX call I get status 0. In blog it says: ” If you plan to create gadgets with dynamic data, Google offers AJAX helpers to load data in through AJAX.” <– which helpers do you mean?

  • http://www.best-poker.com best poker

    Excellent! bravo pour cet article! et pour ce talent pour les jeux de mots 🙂 tous mes encouragements!

  • http://www.bonus-casino-en-ligne.info casino en ligne

    article vraiment interessant en enesperant d’autre bonne continuation!

  • Pingback: Mobb Deep Up For Jay-Z Collabo, Despite Past Beef | Im Yours Lyrics Meaning

  • Pingback: skin tags removal at home

  • Pingback: gardening recipe

  • Pingback: mage pvp

  • Pingback: remote PC repair

  • Pingback: Goozle Zone

  • Pingback: bad credit loans

  • Pingback: ania quisumbing

  • Pingback: guayabera

  • Pingback: online song downloads

  • Pingback: onebuckresume.com

  • Pingback: payday loans online

  • Pingback: ultimate power profits

By Jamie

My Books