The datatables works fine however I am trying to add TableTools and I am having issues. With what I am using the data tables works fine as intended with no issues at all, however trying to add tabletools to it has had no success. There are no console errors reported with what I am doing yet nothing displays. This leads me to believe I am doing something wrong in the code. I have put the code below.
The script includes:
<script src="//cdn.datatables.net/1.9.4/js/jquery.dataTables.js"></script>
<script src="//cdn.datatables.net/tabletools/2.2.0/js/dataTables.tableTools.js"></script>
<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<link rel="stylesheet" href="//cdn.datatables.net/tabletools/2.2.0/css/dataTables.tableTools.css" type="text/css" media="all" />
I am using the following code:
var foreTable = $(".cscf-fore-table").dataTable({dom: \'T<"clear">lfrtip\',
tableTools: {
"sSwfPath": "//cdn.datatables.net/tabletools/2.2.0/swf/copy_csv_xls.swf",
"aButtons": [
"copy",
"csv",
"xls",
"print"
]
},
"bSort": false,"aLengthMenu": [
[25, 50, 100, 200, -1],
[25, 50, 100, 200, "All"]
],
"iDisplayLength":-1, "bJQueryUI":true, "sPaginationType":"full_numbers"});