How to use the CDN Datatables with the cdn Table tools? Setting sSwfPath?
How to use the CDN Datatables with the cdn Table tools? Setting sSwfPath?
I have been trying to get this to work. Currently, I am getting the datatables JS from the MS Ajax CDN and also getting the table tools from http://datatables.net/download/build/TableTools.min.js . When I try to use the Table Tools to get the Export to Excel and Print buttons (or any buttons), they do not render at all. All I get is a string of text at the top of the page. This leads me to think that there is an issue with the sSwfPath.
Here is my script tags:
[code]
[/code]
Here is the datatables initialization:
[code]
var oTable = $('#detailed_data').dataTable( {
"iDisplayLength": 20,
"sSearch": "Search all columns:",
"sPaginationType": "full_numbers",
"bFilter": false,
"sScrollXInner": "110%",
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "http://datatables.net/download/build/TableTools.min.js/media/swf/copy_csv_xls_pdf.swf"
}
});
[/code]
(FYI: this is also being plugged into a JQuery Dialog to be displayed as a "popup").
With this last configuration, the menu option at the top is NOT displaying and the page row limit does not work (shows all rows).
This site is an internal corporate site so I cannot supply a link. I will try to get some data into a fiddle soon if necessary.
Any help is appreciated.
Here is my script tags:
[code]
[/code]
Here is the datatables initialization:
[code]
var oTable = $('#detailed_data').dataTable( {
"iDisplayLength": 20,
"sSearch": "Search all columns:",
"sPaginationType": "full_numbers",
"bFilter": false,
"sScrollXInner": "110%",
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "http://datatables.net/download/build/TableTools.min.js/media/swf/copy_csv_xls_pdf.swf"
}
});
[/code]
(FYI: this is also being plugged into a JQuery Dialog to be displayed as a "popup").
With this last configuration, the menu option at the top is NOT displaying and the page row limit does not work (shows all rows).
This site is an internal corporate site so I cannot supply a link. I will try to get some data into a fiddle soon if necessary.
Any help is appreciated.
This discussion has been closed.
Replies
Regarding the specific issue, likely it is because you are using scripts and files from multiple sources and the browser (and Flash) are blocking it as a security risk.
Allan
I tested FLASH (from http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html) on my browser(s) and they are all working properly. Does this verify the security portion?
I will look into the security piece, but am not sure this is the issue.
Allan