Thanks Chirstof and Klaus. Great suggestions! ;-)

I'll try right now.

Thanks again.



2007/4/22, Klaus Hartl <[EMAIL PROTECTED]>:


Christof Donat schrieb:
> ----
> $('#dadosAuxiliares').tabs( {fxShow: {height: 'show', opacity: 'show'},
tabStruct:'.fragment'});
> $('#dadosAuxiliares').triggerTab(0);
> ----
>
> can be
>
> ----
> $('#dadosAuxiliares').tabs( {
>       fxShow: {height: 'show', opacity: 'show'},
>       tabStruct:'.fragment'} ).triggerTab(0);
> ----

Also, what do you try to achieve with the triggerTab? The first tab gets
shown by default, unless a fragment identifier/hash in the url matches
another tab id. So you can totally omit that.

In addition, change the value of the tabsStruct option - if at all
required because it seems you're using the default structure - to:
'div.fragment'. This will be a little faster. But using the default will
be the fastest I guess.

And by the way, the index isn't zero-based in Tabs. triggerTab(0) will
work because the index defaults to the first tab for this (invalid)
index, but you may scratch your head in some other case, because
triggerTab(2) for example will not trigger the third tab as you may
think, but the second tab indeed.


-- Klaus

Reply via email to