Put a class on the remote or local ones and check to see if that class is present?
You can also add a list of remote / local tabs in a list, for example... -- Jorge Godoy <[email protected]> On Wed, Nov 11, 2009 at 22:04, starmonkey <[email protected]> wrote: > Hi All, > > Am tinkering with tabs, and I want to know how I can check to see if > the currently selected tab is a "remote" tab or not. > > For example, I have code like this: > > var $tabs = $('.ui-tabs').tabs(); > var selected = $tabs.tabs('option', 'selected'); > $tabs.tabs('load', selected); > > But not all my tabs are remote tabs... some have static content and > thus "load" is meangingless. Instead I need to reload the current > window for "static" tabs, but use "load" for ajax tabs. > > So, my question is: how do I check if the selected tab is remote or > not? > > // SM > > -- > > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<jquery-ui%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=. > > > -- You received this message because you are subscribed to the Google Groups "jQuery UI" 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/jquery-ui?hl=.
