Replace flash 'Export' buttons
Replace flash 'Export' buttons
I am using DataTables_v1.7.6/jquery.dataTables.js
The Export (csv & xls) buttons are flash enabled. How to replace them with cleaner buttons?
I have this in my code:
"oTableTools": {
"aButtons": [
{"sExtends": "csv", "sFieldBoundary": '', "sFileName": "Report.csv","mColumns": [ 0,1,2,3,4,5 ]},
{"sExtends": "xls", "sFieldBoundary": '', "sFileName": "Report.xls","mColumns": [ 0,1,2,3,4,5 ]},
],
"sSwfPath": "${pageContext.request.contextPath}/plugins/TableTools-2.0.1/media/swf/copy_cvs_xls_pdf.swf"
}
This question has an accepted answers - jump to answer
Answers
I would suggest using the HTML5 buttons - Flash is dying an will be removed from browsers by the end of the year.
Colin
Do we have 'buttons' in --> 1.7.6/jquery.dataTables.js ?
No. The Buttons library requires DataTables 1.10.
1.7.6 is from March 2011 and is no longer supported. I would strongly suggest upgrading.
Regards,
Allan