Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82149

TableTools fails to change sSwfPath from default

$
0
0
Thanks for the great tool!

I am having trouble with the TableTools package.

I try to use

               $('table.filter').dataTable( {
	    		"sDom": 'T<"clear">lfrtip',
	    		"oTableTools": {
	    			"sSwfPath": "/MyProject/src-client/lib/TableTools-2.1.4/media/swf/copy_csv_xls_pdf.swf"
	    		}
	    	} );

But the network call to load the swf file still goes to the default location (my server responds with a 200 OK response so no error pops up) and therefore the PDF and excel export buttons do not work. (I can manually change the default location and then it works fine - but it's a hack).

Also, if I have multiple tables on the same page, the sfw file loads very many times (there are many requests for it in my chrome browser network inspector) - Is there a way to have it just load once?

Thanks!

Viewing all articles
Browse latest Browse all 82149

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>