data table throwing error "Microsoft JScript runtime error: 'html(...).0' is null or not an object"
data table throwing error "Microsoft JScript runtime error: 'html(...).0' is null or not an object"
jagadeesha
Posts: 1Questions: 0Answers: 0
I cannot add TH in to table it throws error "Microsoft JScript runtime error: 'html(...).0' is null or not an object"
listHeaders = [];
var headerSettings;
headerSettings = {};
headerSettings.sTitle = "test";
headerSettings.bVisible = true;
headerSettings.ttText = "test";
listHeaders.push(headerSettings);
oTable = $('#tabList').dataTable({
"aoColumns": listHeaders,
"sPaginationType": "full_numbers",
"bSort": true,
"bProcessing": true,
"oLanguage": {
"sSearch": "Search all columns:"
},
"fnDrawCallback": function() {
$("#CodesList thead tr th").each(function(n) {
var col = $(this);
var colTitle = $(this).text();
$.each(listHeaders, function(n, v) {
if (v.sTitle == colTitle) {
col.attr("title", v.ttText);
col.tooltip();
}
});
});
}
});
listHeaders = [];
var headerSettings;
headerSettings = {};
headerSettings.sTitle = "test";
headerSettings.bVisible = true;
headerSettings.ttText = "test";
listHeaders.push(headerSettings);
oTable = $('#tabList').dataTable({
"aoColumns": listHeaders,
"sPaginationType": "full_numbers",
"bSort": true,
"bProcessing": true,
"oLanguage": {
"sSearch": "Search all columns:"
},
"fnDrawCallback": function() {
$("#CodesList thead tr th").each(function(n) {
var col = $(this);
var colTitle = $(this).text();
$.each(listHeaders, function(n, v) {
if (v.sTitle == colTitle) {
col.attr("title", v.ttText);
col.tooltip();
}
});
});
}
});
This discussion has been closed.