TableTools fails to initialize (copy, pdf, xls functions not working)
TableTools fails to initialize (copy, pdf, xls functions not working)
newtodatatables
Posts: 31Questions: 0Answers: 0
I believe this is a repeated problem many have faced but cant get the solution. I have downloaded the full TableTools at http://datatables.net/extras/ and seen the example. I am using IE 8 and the online example works great but not the local version. However, after the download and the adding of the necessary files such as the jquery.js and datatables.js, the copy, pdf, xls functions do not work. The page loads fine with the proper icons but nothing appears when i click on them. I have tried opening the file directing (file:// in IE) and have also tried deploying on a local host using Apache tomcat, and it failed too.
I have also viewed this thread for help http://datatables.net/forums/comments.php?DiscussionID=3871&page=1#Item_0
Import functions and init script in index.html
[code]
@import "css/demo_page.css";
@import "css/demo_table.css";
@import "TableTools/media/css/TableTools.css";
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"sSwfPath": "TableTools/media/swf/copy_cvs_xls_pdf.swf"
} );
} );
[/code]
TableTools is my main folder. My datatables.js and jquery.js are in another folder and the proper import has been made. One weird thing is "right clicking" on the icon shows that Adobe flash is not loaded. Could this be the problem? I am using Flash player 10,1,53,64 as shown in http://www.adobe.com/software/flash/about/
Hopefully someone can guide me on this. Thank you.
I have also viewed this thread for help http://datatables.net/forums/comments.php?DiscussionID=3871&page=1#Item_0
Import functions and init script in index.html
[code]
@import "css/demo_page.css";
@import "css/demo_table.css";
@import "TableTools/media/css/TableTools.css";
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"sSwfPath": "TableTools/media/swf/copy_cvs_xls_pdf.swf"
} );
} );
[/code]
TableTools is my main folder. My datatables.js and jquery.js are in another folder and the proper import has been made. One weird thing is "right clicking" on the icon shows that Adobe flash is not loaded. Could this be the problem? I am using Flash player 10,1,53,64 as shown in http://www.adobe.com/software/flash/about/
Hopefully someone can guide me on this. Thank you.
This discussion has been closed.
Replies
Allan
Allan, have you tried this on a local server? Is it supposed to work in the local server? Or must I actually launch it on an actual server? And regarding the path, it should be using relative path as what I did right?
Allan
Allan
I have a question. Locally (file:///) the export does not work (nothing happens). But when the module is hosted everything works. As you say it's a safety issue.
By this fact, the module works fine on PHP (Apache2). But in asp.net (IIS) that does not work either, such a local file (file:///) nothing happens.
How the export works? is there an issue?
Thank you very much in advance.
Deal.
The export on asp.net(IIS) works fine!
I forgot to set the swf file correctly : copy/paste :(
Thank you
Allan
two headings such as employee and status, bot are displaying in same column in excel.Everything get collasped.Suggest about this....
Thank You
Update:
Just for interest sake I found the problem - I included the external plugin jquery.ui.touch-punch.min.js for making jquery draggable work on the ipad. This was for some reason causing problems in Chrome on the mentioned page. When removed all the exports work again.
Allan