UI Tabs: reloading current tab

UI Tabs: reloading current tab

Hi,

I'm using jQuery UI Tabs to load separate files through Ajax. I would like to reload a file by clicking the currently selected tab, but it seems like I'm doing something wrong since the page doesn't reload.
If someone could tell me what I'm doing wrong, it would be much appreciated.
Thanks in advance.


$(document).ready(function() {
   
    $("#tabs").tabs({
            cache: false,
            ajaxOptions: { cache: false }
    });

    $("li.ui-tabs-selected").children("a").click(function () {
        var tabindex = $("#tabs").tabs('option', 'selected');
        alert("Reloading tab " + tabindex + ".");
        $("#tabs").tabs('load',tabindex);
    });

});