restructing datatables call for making sure it works for internet explorer 9

restructing datatables call for making sure it works for internet explorer 9

maniyamaniya Posts: 58Questions: 12Answers: 0

I have data tables working and perfectly fine, now i am trying to use old version of datatables but for IE 9 its all breaking up, anyone who can provide me some help with this code

$("#datatables").DataTable({
    "bFilter": true,
    "serverSide": true,
    "deferRender":true,
    "processing": true,
    "fixedHeader": true,
    "scrollX": true,
    "columns": [
        { "data": "Name", "title": "Name", "autoWidth": true },
        { "data": "Email", "title":"Email", "autoWidth": true },

    ],
    "ajax": {
        "url" : "/page.php",
        "type" : 'post',
        "data": function (d) {
            return $.extend({}, d, {
                "sdate": $('#sdate').val(),
                "edate": $('#edate').val()
            });
        }
    },
    "language": {
            "processing": '<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i><span class="sr-only">Loading..n.</span> ',
            "emptyTable": "No Data available"
    },
    "scroller": {
      loadingIndicator: true
    },
    "initComplete" : function () {
        $('.dataTables_scrollBody thead tr').addClass('hidden');
    }
});

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 62,099Questions: 1Answers: 10,183 Site admin
    Answer ✓

    An honest question - why do you need to support IE9? Microsoft stopped supporting it in 2017.

    That said, I don't immediately see anything in you code that is going to cause issues for IE9. Is it a visual error you are getting? Perhaps you can link to a test case please?

    Allan

Sign In or Register to comment.