12 messages in com.googlegroups.google-gadgets-apiRe: Gadget suddenly failing with "_ge...
FromSent OnAttachments
Max Romantschuk16 May 2007 03:14 
Bonstio16 May 2007 03:49 
Shoban16 May 2007 07:07 
Dann (Google Employee)16 May 2007 13:01 
Daniel C. Silverstein16 May 2007 14:42 
Max Romantschuk17 May 2007 21:50 
Dann (Google Employee)18 May 2007 12:10 
Dann (Google Employee)18 May 2007 14:29 
Max Romantschuk20 May 2007 22:18 
Max Romantschuk22 May 2007 01:58 
Dann (Google Employee)28 May 2007 10:12 
Max Romantschuk28 May 2007 22:35 
Subject:Re: Gadget suddenly failing with "_getGadgetContainer is not defined" in libtabs.js
From:Dann (Google Employee) (d.@google.com)
Date:05/16/2007 01:01:48 PM
List:com.googlegroups.google-gadgets-api

Hey Max,

I see your problem. Your gadget is a type="url" pointing to http://www.telvis.fi/gadgets/google/telvisgadget-content.jsp. In your JSP file, you're outputting the <script src> tags correctly to import the necessary JavaScript libraries. However, you're trying to instantiate a new _IG_Tabs() object before the <script src=".../ libcore.js"> tags are being loaded in. So all those methods aren't yet defined.

To fix this, simply move the <script src> tags to import the JavaScript libraries above the <script> tag that contains the tabs implementation. This should fix the problem.

Hope this helps!

Dann

On May 16, 6:14 am, Max Romantschuk <roma@gmail.com> wrote:

Our prevoiusly working gadget has suddenly started failing inside libtabs.js, with the error "_getGadgetContainer is not defined". This is the gadget in
question:http://www.google.fi/ig/directory?hl=fi&root=%2Fig&dpos=top&num=24&ur...

libtabs.js seems to be obfuscated, so I haven't really attempted debugging. We haven't changed the gadget, has Google done changes to libtabs.js?

Thanks, Max Romantschuk