jQuery 1.3, UI Tabs 1.6r5, ajax...
using jQuery 1.3 and jQuery UI 1.6r5
On a page I've got some ajax tabs. Now in a global.js file I
initialized tabs before I switched them to ajax.
//initialize tabs
$("ul.tabs-nav").tabs(
defaults = {
navClass: 'tabs-nav',
selectedClass: 'tabs-selected',
unselectClass: 'tabs-unselect',
disabledClass: 'tabs-disabled',
panelClass: 'tabs-panel',
hideClass: 'tabs-hide',
loadingClass: 'tabs-loading'
}
);
Some of the tab contents contain UI Datepicker enabled textboxes
(which I also had originally initialized in a global.js file)
//initialize datepicker
$('input.datepicker').datepicker({
hideIfNoPrevNext: true,
dateFormat: "M d, yy",
showOn: "both",
buttonImage: "../assets/images/brand/icons/
icon_calendar.gif",
buttonImageOnly: true
});
When the content loads, the Datepicker needs to be re-initialized...
but I can't quite figure this out. The UI Tabs documentation and API
seems to have changed from the old jquery.tabs plugin... or maybe it's
me :-(
I need a straightforward recipe for re-initializing various things in
the selected ajax-loaded tab
Thanks!