Datatable with IE 8 and 9

Datatable with IE 8 and 9

futuretechsoftfuturetechsoft Posts: 2Questions: 0Answers: 0
edited April 2013 in DataTables 1.9
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();
}
});

Replies

  • allanallan Posts: 63,386Questions: 1Answers: 10,449 Site admin
    We need a lot more information than this to be able to help. A link ideally, as noted int he forum rules and new discussion pages.

    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
  • futuretechsoftfuturetechsoft Posts: 2Questions: 0Answers: 0
    [quote]allan said: Also keep in mind that IE8/9 Javascript engine is at least 5 times slower than Chrome etc.[/quote]

    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");
    });
    }
  • allanallan Posts: 63,386Questions: 1Answers: 10,449 Site admin
    I guess that should be reasonably fast. It sounds like you might just be hitting the performance limits of IE8/9.

    This is an old post, but it highlights how slow IE8 is: http://blog.actuanceconsulting.com/browser-javascript-speed-comparison/

    Allan
This discussion has been closed.