Looks like you can create this element yourself and pass its ID to the
addTab method:
http://code.google.com/apis/gadgets/docs/ui.html#How_it_Works

"Object opt_params -- Optional parameter object. It can include the
following:
    * contentContainer --An existing HTML element to be used as the
tab content container. If omitted, the tabs library creates one. "

If you're talking about the row of tabs themselves, you should be able
to use getHeaderContainer to get this element.

"TabSet object. The tabs object is the parent container around all of
the tabs. Programmatically, the tabs object is an array of individual
tab objects. The underlying HTML implementation is typically a <table>
element, referred to in the API as the "header container." You access
this HTML through the gadgets.TabSet.getHeaderContainer() function. "

~Arne

On Jan 29, 3:25 pm, MKoistinen <[email protected]> wrote:
> A follow-on question.  Is there anyway that you know of to get the
> element ID of the tab-container?  I'd like it to be the object that I
> invoke scrollIntoView().
>
> Thanks again!
>
> On 29 Jan, 21:57, "Arne Roomann-Kurrik (Google)"
>
> <[email protected]> wrote:
> > Normally you wouldn't be able to do this, but the scrollIntoView
> > function isn't affected by the parent/child iframe limitation.  Try
> > using:
>
> > document.getElementById("<id of the element>").scrollIntoView();
>
> > There's an optional argument that lets you align the element with the
> > top or the bottom of your 
> > screen.https://developer.mozilla.org/en/DOM/element.scrollIntoViewhasmore
> > information.
>
> > Hope this helps,
> > ~Arne
>
> > On Jan 29, 1:33 pm, "Bonstio (Guru)" <[email protected]> wrote:
>
> > > Someone will correct me if I'm wrong but I'm pretty sure you cannot
> > > reach outside of the gadget's iframe so scrolling the parent page will
> > > not be possible using javascript.
>
> > > It sounds like a gadget this big would be a good candidate for a
> > > little UI refactoring. People prefer not to have to scroll to see a
> > > gadget's contents in its entirety. Is there anyone you could consider
> > > using perhaps tabs or some other mechanism for showing the content?
>
> > > HTH
>
> > > On Jan 29, 8:18 pm, MKoistinen <[email protected]> wrote:
>
> > > > Hi all,
>
> > > > I have a rather long gadget and the user will often scroll his screen
> > > > down to get to the bottom of it.  I need a way to return the user to
> > > > the top which I can place in a tab callback function.  Is this
> > > > possible?
>
> > > > Just to be clear, I'm not talking about scrolling the content within
> > > > the gadget's iFrame, but rather, scroll the page that contains the
> > > > gadget.
>
> > > > Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to