TableTools undefined initialized in 1.10b2?
TableTools undefined initialized in 1.10b2?
Steve_Webtron
Posts: 19Questions: 0Answers: 0
in my document.ready I used to have:
[code]
TableTools.DEFAULTS.sSwfPath = "/admin/js/DataTables-1.10.0-beta.2.0b/extensions/TableTools-2.2.0/swf/copy_csv_xls_pdf.swf";
[/code]
So that when multiple tables in a page were initialized they all loaded the swf buttons.
Since I switched to dataTables 1.10 I get
TypeError: Cannot read property 'DEFAULTS' of undefined
and TableTools is of course undefined.
I load the scripts in the same order I did in 1.9.4, I just corrected the paths for 1.10.b2
[code]
[/code]
[code]
TableTools.DEFAULTS.sSwfPath = "/admin/js/DataTables-1.10.0-beta.2.0b/extensions/TableTools-2.2.0/swf/copy_csv_xls_pdf.swf";
[/code]
So that when multiple tables in a page were initialized they all loaded the swf buttons.
Since I switched to dataTables 1.10 I get
TypeError: Cannot read property 'DEFAULTS' of undefined
and TableTools is of course undefined.
I load the scripts in the same order I did in 1.9.4, I just corrected the paths for 1.10.b2
[code]
[/code]
This discussion has been closed.
Replies
I should also point out that the global variable `TableTools` will be removed in the next major release of TableTools - and `$.fn.dataTable.TableTools` should be used instead (which does work correctly in 2.2.0).
Allan
Allan
Hello
I'm trying to initialize TableTools..with dataTables1.10 & Jquery2.1.0 & JqueryMobile 1.4.1
.. and TableTools doesn't show up.
Here is the way I initialize TT, via the page's associated javascript file.. I guess I'm correct?
(DataTables in itself works perfectly)
Thank you
Are you referencing TableTools js file in your HTML?
Nope, it's in the module's js main file.
DataTables works fine. The problem is tableTools..(and surely the mistake I've done :) )
We'd need a link to the page to be able to understand why it isn't working I think.
Allan
It's impossible,it's not a web site, there is no real page, it's a web app on a server generated with php & {smarty} and you must have an account to login to see any page.
But I'll think about it, maybe I'll have to buy a ticket.
Thank you anyway
Ok this problem is solved, obviously, I also had to call the plugin either via my headers_includes or in the module php file.. Done.!
Anyway... the swf is loaded.. but as many many users.. as I see..it doesn't work. (any browser)..
I also checked the swf files.. as I could because I have no tools for this:
FYI:
FlashPlayerDebugger says:
...I know flash s..ks big time