Do we need webserver for TableTools to work
Do we need webserver for TableTools to work
nitinyadav
Posts: 3Questions: 0Answers: 0
I was trying to add the download as excel and csv feature, but its not working. It fails with error : uncaught exception: Unable to load SWF file - please check the SWF path in Tabletools.js
I was wondering do we need to host it on tomcat or some other server for it to work or just adding the files in a common folder will make it work.
I was wondering do we need to host it on tomcat or some other server for it to work or just adding the files in a common folder will make it work.
This discussion has been closed.
Replies
However, that isn't the error that I would expect you to get if you were using it on the local file system. I'd suggest having a look at the Firebug or Webkit console to see what is happening (i.e. where it is trying to load the data from).
Allan
Line: 134 has error
this.div.innerHTML = this.getHTML( box.width, box.height );
this.loadingTimer = setTimeout( function () {
throw( 'Unable to load SWF file - please check the SWF path' );
Uncaught Unable to load SWF file - please check the SWF path (repeated 2 times)
}, 10000 )
but i have supplied the path as correct.
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": "copy_csv_xls_pdf.swf",
"aButtons":["copy", "print","xls"]
}
} );
} );
where the swf and html file both are in same folder.
I have also tried setting the absolute path:
"sSwfPath": "C:/Users/Username/Desktop/copy_csv_xls_pdf.swf",
but still the table features work like sorting and searching but the download is not working.
Allan
I downloaded 1.9 as it was a stable release shown on website. I will try it with 2.x too.
Thanks :)
That is a security feature of Flash. You can add an exception to your Flash player here: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
Allan