On 12 Dez., 11:26, Richard W <[EMAIL PROTECTED]> wrote:
> I was wondering if there is any way of making the tabs still retain
> their original link after you have click on a tab.
> IE when you click on a tab, it goes selected but the link still
> remains and the cursor still remains as a link area, so when you are
> viewing the content of the selected tab, you still have the option of
> reloading the content of the tab you are viewing by clicking on the
> selected tab.
>
> Thank you for any suggestions.
> Richard

Which cursor is shown on a selected tab is declared in the CSS only
and can be changed easily... the class "ui-tabs-selected" has some
cursor declarations that need to be removed.

Reloading a selected tab can be achieved by using the tabsLoad method,
like (untested):

var $tabs = $('#id').tabs({
    click: function(tab, panel) {
        var selected = $tabs.tabsSelected();
        if (selected == $('a', $tabs).index(tab) + 1) {
            $tabs.tabsLoad(selected);
        }
    }
});


--Klaus

Reply via email to