Export Buttons not work
Export Buttons not work
Hi, I can see export buttons, but do not work on click, "Save As..." dialog box never appears...any idea?...thanks in advance...
oTable = $('#example').DataTable( {
'oLanguage': {"sSearch": "Buscar:",
"sInfo": "Total Locales de votación: TOTAL",
"sInfoEmpty": "",
"sEmptyTable": "No hay locales definidos"},
'scrollY': "500px",
'scrollX': true,
'processing': true,
'paging': false,
'serverSide': true,
'ajax': 'gettodos.php',
'bAutoWidth': false,
'dom': 'Bfrtip',
'buttons': [
'excelFlash',
'pdfFlash'
]
} );
Answers
Have you included the correct files?
This are files included:
<script src="https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.1.0/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.1.0/js/buttons.flash.min.js"></script>
Now I change my code, but the behavior is same, I can see all buttons, but only work "Print" in order to preview...Dialog Box never is showing and swf file is in correct path...:
<link rel='stylesheet' href='DataTables-1.10.10/media/css/jquery.dataTables.css'>
<link rel='stylesheet' href='dist/css/dataTables.tableTools.css'>
'dom': 'T<"clear">lfrtip',
tableTools: {
"sSwfPath": "DataTables-1.10.10/extensions/Buttons/swf/copy_csv_xls_pdf.swf"
}
Does you browser actually have Flash installed? We'd need a link to the page to offer any help so it can be debugged directly.
Allan
Yes, Flash is installed, so finally i migrated to html5 buttons, i don't want have any plugin flash dependency.
Thanks !!