When adding a tab panel, attach your 'tmptable' value to the panel options.
$('#tablgn').tabs('add',{
title:title,
closable:true,
tmptable:tmptable
})
When closing a tab panel, the 'onBeforeClose' event fires, you can retrieve the attached 'tmptable' value on this event and then make an ajax request to your remote server.
$('#tablgn').tabs({
onBeforeClose: function(title,index){
var p = $(this).tabs('getTab', index);
var tmptable = p.panel('options').tmptable;
}
})