I recently installed a Flickr search gadget. It works, but loads the resulting Flickr page in the same window as my iGoogle page. Not really what I wanted, since the idea is to launch things from iGoogle rather than going back and forth from it. The nice thing about the gadgets is that the source code is available. So I grabbed it from the above link, opened it up in emacs and changed all instances of the HTML <a> attribute “target=’_top’ ” to “target=’_blank’ “.
All well and good, but how to get the modified version onto iGoogle? You need a web server for that. Drop the modified XML file somewhere in your webserver documents directory, then find the link on an iGoogle “add stuff” page that says “Add by URL”. Paste in the URL to your gadget file, e.g. “http://your.server.com/files/search_flickr_module.xml” and you’re all set. My Flickr search results now open in a new Firefox tab.
Update: I’ve tried a lot of “simple search form” gadgets today and so many of them suffer from this “load in same page” problem. And it’s so easy to fix. Can I plead with all gadget developers – use target=”_blank”.