Regression - Buttons HTML5 Excel export no longer works on IE11. Worked up to version 1.4.2
Regression - Buttons HTML5 Excel export no longer works on IE11. Worked up to version 1.4.2
I think we just discovered a regression with the buttons extension, concerning the HTML5 export, specifically on IE11.
I tested every version from 1.1.2 all the way up to 1.5.2, and I can confirm that it worked on IE11 all the way up to 1.4.2. Both 1.5.2 and 1.5.3 cause an error on IE11 preventing the excel file from being opened.
You can easily reproduce this error on the example page for datatables here: https://datatables.net/extensions/buttons/examples/html5/simple.html
If you use IE11, then try to export to excel, the downloaded file will be corrupt and will fail. Roll buttons back to 1.4.2 and it will work correctly again.
Any idea what could cause this regression? I don't see anything in the release notes about this
(FYI, just as an addendum, it would be infinitely useful if there was a centralized place to click through the different versions and read the release notes. A CHANGELOG.md in the github repo with links to the release pages would be very helpful. I had to just alter the URL to step through the versions and read all the release notes. I was basically just altering this URL https://cdn.datatables.net/buttons/1.5.3/ until I got a 404 error, then incremented the middle variable and started over)
This question has an accepted answers - jump to answer
Answers
You tried Buttons 1.5.3? Didn't know it was available yet
There have been many threads regarding buttons and IE11. See if this one from yesterday helps:
https://datatables.net/forums/discussion/comment/137885/#Comment_137885
Kevin
1.5.3 hasn't been published yet. However when it is, it will carry the fix for IE11.
Allan
We are facing this issue. Can you please let us know if there is any workaround which we can use?
You can try the nightly version as indicated in the thread I linked to:
https://datatables.net/download/nightly#Buttons
Kevin
When I use the nightly build I am still getting error in IE 11
SCRIPT5007: Unable to get property 'appendChild' of undefined or null reference
In this line relsGet.appendChild(rowNode); (1145,4)
Can you give me a link to your page so I can test it please? I haven't been able to reproduce that one myself.
Allan
Allan, Here is the link https://webpub-nswecfadms.cs57.force.com/disclosures/
In Relevant Reporting Period* please select 2018/2019. other fields you can ignore. Then search and excel.
It looks like you are using the 1.5.2 release of Buttons which is known to not work with Excel export.
Could you update to the nightly version please? I know above it says you are using the nightly build, but the code on the site linked to doesn't match that.
Allan