UI tabs, ajax, and bind (replacement)
Hello folks,
I've just updated to jquery 1.2.6 and UI tabs (1.5rc1) and now find myself unable to see how to bind a function to the tab content loaded from an ajax call.
Prior to my update of the 1.5rc1 UI Tabs, I could achieve what I needed via...
$('#container-1 > ul').tabs().bind('load.ui-tabs', function(e, ui) {
//various stuff here
});
That approach no longer works in the updated version. A search of Nabble yields me this the following approach, but I am not sure if it is what I'm after, and if it is, I don't know how to apply to my application
var $tabs = $('.ui-tabs-nav').tabs({
select: function(ui) {
alert( $('a', $tabs).index(ui.tab) );
}
});
I'd appreciate some direction here.
Thanks
Bruce