Reputation: 3394
Using ajax to load a DataTable as follows:
$("#getXXData").dataTable({
"bServerSide": true,
"sPaginationType": "bootstrap",
"sAjaxSource": dataRequestUrl,
"bProcessing": true,
"bDestroy":true,
"iDisplayLength":100,
"aaSorting": [[ 4, "desc" ]],
"aoColumns": [
{ "sClass": "text-center","bSortable":false,"sWidth": "5%" },
{ "sClass": "text-left","sWidth": "40%" },
{ "sClass": "text-left","bSortable":false,"sWidth": "30%" },
{ "sClass": "text-left","bSortable":false,"sWidth": "10%" },
{ "sClass": "text-right","sWidth": "15%" }
],
"fnInitComplete": function(oSettings, json) {
$(".tooltip-right").tooltip({placement: "top", trigger: "hover"});
if(json.iTotalRecords == null){
$(".dataTables_paginate").hide();
$("#selectAllXX").attr("checked",false);
}
},
"fnDrawCallback": function() {
$(".tooltip-right").tooltip({placement: "top", trigger: "hover"});
},
"oLanguage": {
"sSearch": "<strong>Search: </strong>",
"sZeroRecords": "No XX Found",
"sProcessing":" <i class=\"fa fa-cog fa-spin\"></i> Processing..."
},
});
When I click any link when it's loading I get an error as follows
Any solutions?
Upvotes: 1
Views: 45