TableTools not working on Chrome, IE working partialy in Firefox

TableTools not working on Chrome, IE working partialy in Firefox

johntorjohntor Posts: 3Questions: 0Answers: 0
edited June 2013 in General
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!

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Sorry, but without a link to a test case, I don't thing there is much we can do to offer help.

    Allan
  • johntorjohntor Posts: 3Questions: 0Answers: 0
    edited June 2013
    Thank you for your reply
    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!
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Excellent - thank you for the test case.

    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
  • johntorjohntor Posts: 3Questions: 0Answers: 0
    Wow I would never think of that!!!
    You are the best!
    I look forword making it work!
    A million thanks!
    J!
This discussion has been closed.