jQuery UI tabs. Reload active tab in non-ajax tab -
Loading / selecting a (non-Ajax) tab within one of the other tabs
Tabs ( 'Select', 3)However, I need to be able to reload the active tab, and above the method do not work for that tab ('load', 3 )
Any ideas about how to achieve this
$ ('# mytabcontainer'). > If ($ Li.hasClass ('ui-tabs-selected') & amp; amp;! O.collapsible)
with
If ([/ code> and add a CSS / edit the jQuery css files on the page, so that you get:
div.ui-tabs ul li .ui tabs-selected one {cursor: pointer! Important;}
This will change the tab so that they can always choose, even if they are already clicked.
If you have this html for your tab:
& Lt; div id = "tab">
With Tab 1 being a non-Ajax tab. If there is no URL in the tab that can refresh it, then first you have to give the URL before reloading it:
var tab = $ ('# tab'). Tab (); Tabs.tabs ('url', 0, 'ajax / content0.html'); Tabs.tabs ('Load', 0);
Remember that tabs are zero-indexed.
Comments
Post a Comment