Hi guys.

This has been irritating me for a while so hopefully someone here can help me out with it.

I'm setting up a tab bar where I want each tab to open the URL in the current page (not via ajax). I've tried the code given in the jQuery UI documents:

Code:
$(function() {
  $('#tab-bar').tabs({
    select: function(event, ui) {
      var url = $.data(ui.tab, 'load.tabs');
      if (url)
      {
        location.href = url;
        return false;
      }
      return true;
    }
  });
});
But it doesn't seem to work. When the tab is clicked, the URL does not load in the current page and instead the AJAX preview still shows. Any idea what could be going on here?