Export Buttons not work

Export Buttons not work

osanmartinosanmartin Posts: 15Questions: 6Answers: 0
edited January 2016 in Free community support

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

  • chrisShickchrisShick Posts: 4Questions: 0Answers: 0

    Have you included the correct files?

  • osanmartinosanmartin Posts: 15Questions: 6Answers: 0

    This are files included:

    <link rel='stylesheet' href='https://cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css'>
    <link rel='stylesheet' href='https://cdn.datatables.net/buttons/1.1.0/css/buttons.dataTables.min.css'>
    


    <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>

  • osanmartinosanmartin Posts: 15Questions: 6Answers: 0

    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"
    }

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    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

  • osanmartinosanmartin Posts: 15Questions: 6Answers: 0

    Yes, Flash is installed, so finally i migrated to html5 buttons, i don't want have any plugin flash dependency.

    Thanks !!

This discussion has been closed.