Is tabletools 2.2.1 supported by IE8?

Is tabletools 2.2.1 supported by IE8?

kunj.ravalkunj.raval Posts: 2Questions: 1Answers: 0
edited June 2014 in Free community support

Hi all,
I am using tableTools 2.2.1 version. Code works fine in IE11 and Firefox 24.4.0, but it gives an error on page load in IE8. Here is the exact error:-
Object doesn't support this property
dataTables.tableTools.js

Can someone help me with the this? Thanks.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 57,730Questions: 1Answers: 9,203 Site admin
    Answer ✓

    Yes it should do. However, there are a couple of known issues with DataTables 1.10.0 and IE8. Try the nightly and see if that resolves the issue.

    If not, can you link to a page showing the problem?

    Allan

  • kunj.ravalkunj.raval Posts: 2Questions: 1Answers: 0
    edited June 2014

    Allan,
    Here is my JS import :-

    shared/jquery-ui-1.10.4/js/jquery-1.10.2.js
    shared/jquery-ui-1.10.4/js/jquery-ui-1.10.4.js
    shared/jquery-ui-1.10.4/js/jquery-ui-1.10.4.min.js
    shared/DataTables-1.10.0/media/js/jquery.dataTables.js
    shared/DataTables-1.10.0/media/js/jquery.dataTables.min.js
    shared/DataTables-1.10.0/extensions/TableTools/js/dataTables.tableTools.nightly.js
    shared/DataTables-1.10.0/extensions/TableTools/js/dataTables.tableTools.nightly.min.js

    And here's my script (AJAX call complete function performs this code below):-
    var oTable =
    $('#mytable).DataTable({
    dom: 'T<"clear">lfrtip',
    "bAutoWidth": false,
    "bSort": false,
    "aLengthMenu": [
    [10, 25, 50, 100, -1],
    [10, 25, 50, 100, "All"]
    ],
    "iDisplayLength" : -1,
    "aoColumns": [
    { "sWidth": "8%", "sClass": "center" },
    { "sWidth": "10%", "sClass": "center" },
    { "sWidth": "8%", "sClass": "center" },
    { "sWidth": "8%", "sClass": "center" },
    { "sWidth": "8%", "sClass": "center" },
    { "sWidth": "8%", "sClass": "center" },
    { "sWidth": "8%", "sClass": "center" },
    { "sWidth": "8%", "sClass": "center" },
    { "sWidth": "8%", "sClass": "center" }
    ],
    "tableTools": {
    "sSwfPath":
    "shared/DataTables-1.10.0/extensions/TableTools/swf/copy_csv_xls_pdf.swf",
    "aButtons": [
    {
    "sExtends": "collection",
    "sButtonText": "Save report to...",
    "aButtons": [
    {
    "sExtends": "pdf",
    "sPdfOrientation": "landscape"
    },
    "xls",
    "print"
    ]
    }
    ]
    }
    });

    I am able to download report in EXCEL, PDF and PRINT okay in Firefox and IE11. In IE8 - it gets weird. When page loads for the first time, download(PDF, EXCEL) and PRINT works. On button click, AJAX call first removes the existing DATATABLE and appends it again. Once it finishes, I get an error that I mentioned earlier. And I CAN'T download PDF, EXCEL but PRINT still works. If I reload the page again. It works.

    I used 'nightly' code like you said but still having an issue. Hope this gives you an idea what my code does and where do I get an error. Let me know if I can provide any further info? As I won't be able to link you to live page. I appreciate your help.

This discussion has been closed.