TableTools not working on Chrome, IE working partialy in Firefox
TableTools not working on Chrome, IE working partialy in Firefox
I have a very strange situation making TableTools working!
on Chrome and IE do not work at all (Buttons look fine but not working).
In Firefox if I use normal buttons the don't work but when I use a Collection they work fine.
This is the initialization code I use:
[code]
"oTableTools" : {
"aButtons" : ["xls","csv",{
"sExtends" : "collection",
"sButtonText" : "Export",
aButtons: ["xls","csv"]}],
"sSwfPath" : "http://localhost/copy_csv_xls.swf"
}
[/code]
The first two are not working while the "Export" button is popping up the two others that work fine.
DataTables debug bookmarklet - debug code: oqubuf
Table name "#report_tbl"
Is on localhost so I cannot provide a link.
Thank you in advance
J!
on Chrome and IE do not work at all (Buttons look fine but not working).
In Firefox if I use normal buttons the don't work but when I use a Collection they work fine.
This is the initialization code I use:
[code]
"oTableTools" : {
"aButtons" : ["xls","csv",{
"sExtends" : "collection",
"sButtonText" : "Export",
aButtons: ["xls","csv"]}],
"sSwfPath" : "http://localhost/copy_csv_xls.swf"
}
[/code]
The first two are not working while the "Export" button is popping up the two others that work fine.
DataTables debug bookmarklet - debug code: oqubuf
Table name "#report_tbl"
Is on localhost so I cannot provide a link.
Thank you in advance
J!
This discussion has been closed.
Replies
Allan
I managed to uploaded it online. The problem remains
http://www.greek-developers.com/airside/
Click on the orage button (Sorry about the Greek)
Don't mind the ??? into the table I just did not set up correctly the db.
On FF Click buttons Excel and CSV do nothing, then Click Export then everything works(even the first ones). On Chrome nothing...
Thank you once again!
J!
The problem is that the DataTable is being initialised hidden - so it has no height or width, and therefore the Flash buttons which overlay the HTML buttons for exporting cannot be assigned a height or width.
What to do is to call the fnResizeButtons ( http://datatables.net/extras/tabletools/api#fnResizeButtons ) TableTools API method when the table is made visible (i.e. once it has height and width).
Allan
You are the best!
I look forword making it work!
A million thanks!
J!