iGoogle Gadget for your Blog

Since my wife uses her own computer and explores all the possibilities, I got a lot questions and found some interesting tools because of her. One of them is iGoogle. Experimenting with it makes every newbie happy and it is very easy to configure.

I came to the idea to offer the blog as a gadget for iGoogle. Everybody who likes to do the same can use this tutorial and doesn’t have to work through the Documentation of Google.

It’s easy to create a iGoogle Gadget. But you should have knowledge in HTML and CSS. Since WordPress offers a standard search, I created the gadget so you can search in iGoogle on your blog.
Now we have another source where user can search. You can create the gadgets on every page. In this case it’s a search for a WordPress blog, but it works for every other search too, you just have to know the name of the search field.

Preparing iGoogle gadget

The Gadget is only a referral to a page, like a frame, which shows the website. Because of that, we have to create a page, which get referred via XML. In the XML file are all data included which Google needs.

For this purpose I created a folder, where the data for the gadget will be available – iGoogle. You create a static page with search in your folder.

 

I equipped the search field with JavaScript, so the search field looks a little bit more attractive. The form gets the attribute action the address of the blog and the input-field must have the name s , since WordPress trigger the search because of this. Important is also the declaration of the attribute target="_top", otherwise the search would happen in the gadget window.

My index.php looks like this. Basically is a simple HTML page sufficient, your fantasies have no limits. But pay attention that your gadget could come off very small, depends on the resolution.

	

 

Additional you create your CSS to design your search page as you want to. But don’t forget the gadget could be very small!

Gadget XML Structure

You have to create a XML in your folder to give Google information.
Here is a following example, which you can adjust for your needs. Just upload and done.

This structure creates the data to activate the gadget, you can see it in the screenshot below.

Add iGoogle Gadget

Publish gadget

There is a Service available to share it with other user. You just have to let it know your address. Just put the address to your XML into the Service.

Your gadget is done and you can let all your friends know. How that works is explained in Google right after your registration. You also could easily create simple gadgets for websites. You will find the links after your login or you just use the documentation of API.


Posted

in

by

Comments

One response to “iGoogle Gadget for your Blog”

  1. danyexel Avatar

    “””nice article.., very informative,, thanks :)”””