jQuery: The Write Less, Do More JavaScript Library

Re: .tabs("select", index) and callback functions

by Klaus Hartl-4 :: Rate this Message:

Reply to Author | View in Thread


Yes. You cannot select an already selected tab :-)

But if you need to reload the selected tab you can use the
tabs('load') method.


--Klaus


On Jul 23, 8:54 pm, Brian Schilt <motoxr...@...> wrote:

> Answered my own question...
>
> yes it does fire the callback functions.
>
> The trouble I was having is that I have the server determine which tab
> gets the .ui-tabs-selected class. The .tabs("select", index) function
> won't fire the callback functions on a tab that already has the .ui-
> tabs-select class assigned to it.
>
> On Jul 23, 2:38 pm, Brian Schilt <motoxr...@...> wrote:
>
> > When the .tabs("select", index) function is used, will it trigger the
> > 'tabsselect' and 'tabsshow' callback functions?
>
> > The documentation says that .tabs("select", index) simulates a click
> > programmatically but it doesn't seem to be triggering the callback
> > functions.
>
> > Does anybody know?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@...
To unsubscribe from this group, send email to jquery-ui-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: .tabs("select", index) and callback functions

LightInTheBox - Buy quality products at wholesale price!