TableTools not working
TableTools not working
Hi,
I'm trying to get the current version of tabletools working.
I'm using JQuery 1.7, JQUI 1.8.16 and datatables 1.8.2 with the latest tabletools.
I've set it up as per the example here : http://datatables.net/release-datatables/extras/TableTools/theme.html
The copy, csv, excel, pdf and save buttons are showing, however only the save > csv , save > excel or save > pdf are working, not the individual buttons.
I'm trying to get the current version of tabletools working.
I'm using JQuery 1.7, JQUI 1.8.16 and datatables 1.8.2 with the latest tabletools.
I've set it up as per the example here : http://datatables.net/release-datatables/extras/TableTools/theme.html
The copy, csv, excel, pdf and save buttons are showing, however only the save > csv , save > excel or save > pdf are working, not the individual buttons.
This discussion has been closed.
Replies
If you have Chrome or Safari handy, then open your page up in one of those browsers and have a look at the Inspector's "console" tab - this will tell you if the server has reported any 404 errors. My guess is that the SWF is going to be hitting a 404 error due to a path issue. If that is the case then you need to set the path with something like:
[code]
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/swf/copy_cvs_xls_pdf.swf"
}
} );
} );
[/code]
Regards,
Allan
In your example you have the Copy, CSV, Excel, PDF and Save buttons in a row. When I use your example none of the buttons work except those in the save button dropdown.
I also have a problem with the save drop down in Internet Explorer 9, it just appears as a black box, although the links work in the dropdown still.
http://5img.com/vimg443/1063/59capture.png
Allan
I've seperated out the part of the app that show's this datatable onto a test page and all is working as it should so there must be a conflict coming from somewhere else in the app or one of the other jquery modules I'm using.
Thanks for the help all the same.
The chart is loaded by calling a javascript function, which loads the swf file. Not sure if it's something in the javascript function or the swf movie itself that is causing the conflict.
So if you don't load Fusion charts then it all works okay? But if you do then you get the black blob and not working tools? I wonder if the Fusion loader might be modifying all Flash movie instances it finds on the page - but I'm sure they would have caught that a long time ago. Do Fusion charts work if you don't enable TableTools? Are there any error messages on the control?
Thanks,
Allan