You can add a new tab to the jQuery UI tabs header and then trigger the refresh
function and select
that new tab. Here is a code snippet that should help:
var $mytabs = $('#mytabs'),
$accordion = $('#accordion'),
addTab = function() {
var time = new Date().getTime();
$mytabs.find('ui-tabs-nav').filter(':first').append('<li><a href="data.php?t=' + time + '">New Tab!</a></li>').tabs('refresh');
$mytabs.tabs('refresh').tabs('select', 'data.php?t=' + time
};
$accordion.accordion({
activate: addTab
});