Datatable with IE 8 and 9
Datatable with IE 8 and 9
futuretechsoft
Posts: 2Questions: 0Answers: 0
Hi,
We used datatable for our website. it is working fine in Chrome and Firefox but not in IE 8 and IE 9 that work too slow. IE takes 5 times more time in compare of Chrome and Firefox. we debug it and found that while initiate Datatable object that takes time. so pls tell us is there any way that can help us. below i mentioned code
oTable = $("#tblSearchGrid").dataTable({
"bJQueryUI": true,
"iDisplayLength": TotalRecord,
'bFilter': false,
"bRetrieve": false,
"bDestroy": true,
"bLengthChange": false,
"bDeferRender": true,
"bSortClasses": false,
"aaSorting": [],
"aoColumnDefs": [{ "bSortable": false, "aTargets": [0] }, { "bSortable": false, "aTargets": [1]}],
"fnDrawCallback": function () {
CommonDrawCallBack();
},
"fnInitComplete": function () {
CommonInitComplete();
}
});
We used datatable for our website. it is working fine in Chrome and Firefox but not in IE 8 and IE 9 that work too slow. IE takes 5 times more time in compare of Chrome and Firefox. we debug it and found that while initiate Datatable object that takes time. so pls tell us is there any way that can help us. below i mentioned code
oTable = $("#tblSearchGrid").dataTable({
"bJQueryUI": true,
"iDisplayLength": TotalRecord,
'bFilter': false,
"bRetrieve": false,
"bDestroy": true,
"bLengthChange": false,
"bDeferRender": true,
"bSortClasses": false,
"aaSorting": [],
"aoColumnDefs": [{ "bSortable": false, "aTargets": [0] }, { "bSortable": false, "aTargets": [1]}],
"fnDrawCallback": function () {
CommonDrawCallBack();
},
"fnInitComplete": function () {
CommonInitComplete();
}
});
This discussion has been closed.
Replies
What does your `Common` functions do? Can they be disabled. How many rows / columns in the tables?
Also keep in mind that IE8/9 Javascript engine is at least 5 times slower than Chrome etc.
Allan
Thanx for your prompt response.
Below i mentioned code of common functions. we trace it but it not taking time. and if you my full code i can provide it yoy
function CommonDrawCallBack() {
setCookie("CHK_SELECTION", "", -1);
$('.divLoader').hide();
$(".display td.center").html("");
$(".MainLab").addClass("tooltip");
$(".MainDNA").addClass("Imagetooltip").html("");
}
function CommonInitComplete() {
$('#freezeDiv').hide('slow', function () {
$('#freezeDiv').remove();
$("body").css("overflow-x", "auto");
$("body").css("overflow-y", "auto");
});
}
This is an old post, but it highlights how slow IE8 is: http://blog.actuanceconsulting.com/browser-javascript-speed-comparison/
Allan