Replace flash 'Export' buttons

Replace flash 'Export' buttons

DatatableUser1DatatableUser1 Posts: 2Questions: 1Answers: 0

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

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    I would suggest using the HTML5 buttons - Flash is dying an will be removed from browsers by the end of the year.

    Colin

  • DatatableUser1DatatableUser1 Posts: 2Questions: 1Answers: 0

    Do we have 'buttons' in --> 1.7.6/jquery.dataTables.js ?

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin
    Answer ✓

    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

This discussion has been closed.