I am using this code to load dataTable and tabletools:
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/datatables/1.10.5/js/jquery.dataTables.min.js"></script>
<script src="//cdn.datatables.net/tabletools/2.1.5/js/TableTools.min.js"></script>
And initializing like this:
$(document).ready(function () {
$('.table').DataTable({
"dom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "//cdn.datatables.net/tabletools/2.1.5/swf/copy_csv_xls.swf"
},
});
});
The problem is that the copy_csv_xls.swf is not being found, according to my console:
GET https://localhost:3000/admin/media/swf/copy_csv_xls_pdf.swf 404 (Not Found)
I don't know why is trying to find in media/swf/, i try create this path but still not working.
Aucun commentaire:
Enregistrer un commentaire