Datatables not working on IE11 on a table with approx. 600 rows

Datatables not working on IE11 on a table with approx. 600 rows

cnoelkercnoelker Posts: 3Questions: 1Answers: 0

Hello,
we are using Datatables on a site for several tables. It is working fine if the number of rows is small.
However, there is a table with approx. 600 rows and Datatables is not working at all. No elements are displayed (e.g. search, sorting, dropdowns). All of the 600 rows are displayed, instead. No errors in the console.
This only happens with IE11. Firefox and Chrome are fine.
What can I do to make this work again?
Claudia

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    Happy to take a look at a test case showing the issue if you could link to one please.

    Thanks,
    Allan

  • cnoelkercnoelker Posts: 3Questions: 1Answers: 0

    Great! The page is only visible after a login. However, I created a HTML copy and will send you the link in a private message

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin
    Answer ✓

    Thanks for the link by PM. I'm replying here to conclude the original discussion.

    The IE debugger shows a Javascript error:

    : Expected ')'

    That is happening on this line:

    function getPdf(link, cols=4) {
    

    You've used an ES6 optional argument, which is not supported by IE.

    Allan

  • cnoelkercnoelker Posts: 3Questions: 1Answers: 0

    Gosh - silly IE11...
    Thanks a lot, removing the default value for the optional argument resolved the issue.

This discussion has been closed.