3

I'm trying to create a simple google gadget and am encountering trouble right out the door. I've read the getting started guide top to bottom and feel like i'm still missing something.

Starting with the Hello World gadget they have provided, how do I begin editing and testing? I'm using the Google Gadget Editor with the preview tab. This works for simple html, but any javascript (such as an "alert") I embed doesn't work.

I can publish the gadget and add it to iGoogle. When I do this, my embeded javascript works. However there seems to be a good bit of caching and latency going on behind the scenes. Right now this process of editing, uploading, publishing, debugging is quite painful. Am I missing something obvious here? What is the "correct" way to develop and test a gadget? Is there a program that can run gadget code on my machine without having to go online?

awithrow
  • 1,103
  • 9
  • 18

3 Answers3

1

Ah, the joys of editing a Google Gadget.

From my experience the Google Gadget editor is VERY buggy. So that may be the Javascript issue you are having, try switching browsers.

Also, to disable caching:

http://www.google.com/ig/directory?type=gadgets&url=www.google.com/ig/modules/developer.xml

David Murdoch
  • 87,823
  • 39
  • 148
  • 191
0

The answer appears to be "No" as far as I can tell. I have also suffered the painful latency you mention: one code/debug cycle can easily take 10 minutes of waiting for the gadget to update to my latest code.

I hope someone marks me down and provides a "Yes" answer.

Jose M Vidal
  • 8,816
  • 6
  • 43
  • 48
0

Try appending a query string to your gadget URL and then add it to your gmail or iGoogle page. Use a different query parameter every time you make changes to your gadget. Like for example:

www.mycompany.com/gadgets/main.xml?q=1234

Google refreshes the cache every hour or so. So, adding a query string will force it to refresh the gadget immediately.

nikeairj
  • 173
  • 10