I’m trying to use jquery dataTables with TableTools. It needs access to a swf file.
Where should I put the swf folder? And what would the path look like?
example code
$('#dataTable').dataTable({
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/public/swf/copy_cvs_xls_pdf.swf"
}
});
You can just put the
.swffile on thepublicfolder, however, when linking to it, you’ll remove thepublicpath and access it as if it were on your application’s root.So you’ll write something like this: