Below is jQuery's example of how to get links inside the tabs' panel to load within that panel.
$(function(){
$('#example').tabs({
load: function(event, ui) {
$('a', ui.panel).click(function() {
$(ui.panel).load(this.href);
return false;
});
}
});
});
However, the line $(ui.panel).load(this.href);
will not fire the tabs load event so after you load one link the rest are normal
the reason i ask is cause i have a nested accordion inside my tabs and i want to paginate it via serverside pagination, but when i use the page links it won't remake the accordion.
I want something like this
$(function(){
$('#example').tabs({
load: function(event, ui) {
$(".products", ui.panel).accordion();
$(".product_link", ui.panel).colorbox();
$('a', ui.panel).click(function() {
$(ui.panel).load(this.href);
return false;
});
}
});
});
This seems to get me almost there, however $(ui.panel).load(this.href)
only loads it into the first panel no matter what tab i am on
$(function(){
$('#example').tabs({
load: function(event, ui) {
$(".products", ui.panel).accordion();
$(".product_link", ui.panel).colorbox();
$('a', ui.panel).live('click',function() {
$(ui.panel).load(this.href,function(){
$(".products").accordion();
$(".product_link").colorbox();
});
return false;
});
}
});
})
any ideas?