Initiating DataTables v1.10.16 using IE 9 throws Uint16Array error
Initiating DataTables v1.10.16 using IE 9 throws Uint16Array error
mross
Posts: 1Questions: 1Answers: 0
We have some clients still using IE 9. When initializing Datatables, I get the following errors in the console, using IE9.
SCRIPT5009: 'Uint16Array' is undefined
File: dataTables.js, Line: 31429, Column: 4
SCRIPT438: Object doesn't support property or method 'DataTable'
File: my_code.html, Line: 707, Column: 3
According to Mozilla, Uint16Array isn't supported in IE 9 (only IE 10+):
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array
Any ideas?
This discussion has been closed.
Answers
My guess is that you have included the pdfmake library in that
datatables.js
file? If so, that is the issue. pdfmake which is used by the Buttons extension for DataTables to create pdfs, doesn't support legacy IE.I am surprised that pdfmake throws an error on that though, rather than just testing for it and then refusing to execute.
I'm only guessing without a link to a test case showing the issue though.
Allan