diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Live Gadget Previews Comes to iGoogle Directory

Users of the iGoogle Gadget Directory can now interact with a gadget in the directory before adding it to their page.

“Your gadgets can have live previews too. Gadgets that use Content view=”default” already have a live preview in gadget directory. Remember, view=”default” can match any view supported by the container. Similarly, if the Content element in a gadget doesn’t specify the view attribute, that’s treated the same as if view=”default” were present,” explains Google.

Up until now, the only views that were supported on iGoogle were home and canvas; remember, home is the smaller version and canvas is the larger version.

Some gadgets are customized to display differently for the home and canvas views. If your gadgets do this, you can update the gadget XML spec to add a unique view for the preview or reuse an existing content element.

For gadgets with an element <Content view=”home,canvas”> — In this case you can just add preview, so you’ll have view=”home,canvas,preview”.

For gadgets with <Content view=”home”> — Here too, you can reuse the home view for the preview by changing your spec to view=”home,preview”.

There’re some other restrictions on the way the preview works. A preview can’t use OpenSocial calls – since the user hasn’t set the OpenSocial permissions before installing the gadget. You may want to address this in your gadget by making a special preview version that uses some dummy data, or you can opt out of the live preview and stick with a static screenshot.

Like all gadget views, the preview is cached. This reduces load and speeds up serving for users. But if you’re working on your gadget and don’t see a recent change in the preview, you can disable caching temporarily by adding the parameter “nocache=1” to the url.

Gadgets displayed as a preview also can’t navigate to other views using requestNavigateTo(). If your gadget has a link that triggers changing the view it won’t work in the preview.

If you feel a preview isn’t the right choice for your gadget then specify the other views (home & canvas) and be sure that your screenshot does a good job of conveying what your gadget will do for users.


Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...