4 messages in com.googlegroups.google-gadgets-apiRe: Problem with tabs and opt_container
FromSent OnAttachments
alfredo.casado27 Nov 2007 00:53 
Dan (Google Employee)27 Nov 2007 11:31 
321blastoff02 Dec 2007 18:26 
Dann (Google Employee)03 Dec 2007 09:42 
Subject:Re: Problem with tabs and opt_container
From:Dan (Google Employee) (api.@google.com)
Date:11/27/2007 11:31:03 AM
List:com.googlegroups.google-gadgets-api

Hello,

I've verified this problem myself, just now, and it seems like a bug. I've reported it and will hopefully have a fix soon.

In the interim, you might try customizing the CSS of the tab container to see if you can work around the issue that way. Details can be found here: http://code.google.com/apis/gadgets/docs/ui.html#Tab_Custom.

I hope this helps.

Best, Dan

On Nov 27, 12:53 am, "alfredo.casado" <casa@gmail.com> wrote:

I'm developing a gadget with tabs, i want to put an image on top of the gadget and just below the imagen a div section with the tabs.

In use the third optional parameter of "_IG_Tabs" for this, the reference say "The optional parameter opt_container specifies an HTML element to contain the tabs. If omitted, a new HTML element is created and inserted at the very top. This parameter lets you control where the tabs appear in your gadget"

When i use this parameters the tabs don't working and with firebug i see the error "this.e.insertBefore is not a function" in libtabs.js.

the code is:

<img src="url_image" /> <div id="tabs"/>

<script type="text/javascript">

_IG_RegisterOnloadHandler(init);

function init() {

var tabs = new _IG_Tabs(__MODULE_ID__, "Noticias","tabs");

var noticiasTab = tabs.addTab("Noticias"); _gel(noticiasTab).innerHTML = "Noticias bla,bla,bla";

}

</script>