Jquery ajax call issue.
Hi Experts,This is my function to load data into jquery datatable from external file . its loading the data if alert is used other wise data records not loading.
function registerComposeButtonEvent(){
/* just for this demo */
$('#composeButton').click(function (e) {
e.preventDefault();
var tabId = "compose"+composeCount;//this is id on tab content div where the
composeCount = composeCount + 1;//increment compose count
$('#topTabs').append('<li><a href="#'+tabId+'"><button class="close closeTab clsBtn" type="button" ><i class="fa fa-times-circle"></i></button><i class="flaticon-social-network15"></i>Manage User</a></li>');
$('#topTabs-content').append('<div class="tab-pane" id="'+tabId+'"></div>');
craeteNewTabAndLoadUrl("","work2.html","#"+tabId);
alert('test');
callusergrid();
$(this).tab('show');
showTab(tabId);
registerCloseEvent();
});
}