What exactly do you want to achieve? If you try to automatically load
content from links inside a tab panel into the panel itself, replacing
the content, try this:

$('#example').tabs({
    load: function(ui) {
        $('a', ui.panel).click(function() {
            $(ui.panel).load(this.href);
            return false;
        });
    }
});

If you're just want to reload the content of the given tab, try this:

function loadTab(tab) {
    $('#example').tabs('load', tab);
}

Before you can use that you need to have initialized tabs once of
course:

$('#example').tabs();


--Klaus



On 5 Jun., 02:55, keny <[EMAIL PROTECTED]> wrote:
> Hi thanks for reading
>
> I am trying to load a link in a tab with this function with no
> result :-(
>
> function loadTab(tab){
> var tab;
> var $tabs = $('#container-8').tabs;
> var selected = $tabs.tabsSelected();
>             $tabs.tabsLoad(selected,tab);
>
> }
>
> </script>
>
> The tab variable contain the page to load but noting happen what wrong
> with that ?
>
> Thanks you very much !!!

Reply via email to