TableTools not working in Safari 5.1.7
TableTools not working in Safari 5.1.7
kgagne
Posts: 3Questions: 0Answers: 0
Hello,
I have installed the WordPress plugin TablePress, which uses DataTables and TableTools:
http://wordpress.org/extend/plugins/tablepress/
I am calling it on this page:
http://juiced.gs/index/
via this shortcode:
[code][table id=1 datatables_tabletools=true /][/code]
In Chrome 23, Firefox 3.6.28, Firefox 12, and Safari 6.0.2, this code produces a table with sortable columns, PDF export, a search field, and all the other options I would expect from TableTools. But in Safari 5.1.7, none of those features are present. Only by removing the datatables_tabletools=true parameter can I get any functionality, such as sortable columns.
I was informed this may be a problem with TableTools instead of TablePress. Any idea if this is indeed the case, and what a workaround might be, other than updating Safari? (5.1.7 is as far as it'll go under the Snow Leopard OS)
-Ken
I have installed the WordPress plugin TablePress, which uses DataTables and TableTools:
http://wordpress.org/extend/plugins/tablepress/
I am calling it on this page:
http://juiced.gs/index/
via this shortcode:
[code][table id=1 datatables_tabletools=true /][/code]
In Chrome 23, Firefox 3.6.28, Firefox 12, and Safari 6.0.2, this code produces a table with sortable columns, PDF export, a search field, and all the other options I would expect from TableTools. But in Safari 5.1.7, none of those features are present. Only by removing the datatables_tabletools=true parameter can I get any functionality, such as sortable columns.
I was informed this may be a problem with TableTools instead of TablePress. Any idea if this is indeed the case, and what a workaround might be, other than updating Safari? (5.1.7 is as far as it'll go under the Snow Leopard OS)
-Ken
This discussion has been closed.
Replies
Sounds like you might be getting an error somewhere. What does Safari's console show?
Allan
Thanks for the reply. This is what the error console in Safari 5.1.7 (6534.57.2) shows me:
[code]TypeError: 'null' is not an object (evaluating 'this.s.dt.bJUI') — TableTools.min.js:34[/code]
Allan
Sorry, but I'm not sure I understand. What sort of test page can I provide?
-Ken
I also implemented the same thing but there is no action when i click on the buttons.
What should I do . Please suggest me something I stuck
My code is
$('#table1').dataTable( {
"bJQueryUI": true,
/* "sPaginationType": "full_numbers", */
"bProcessing": true,
"bServerSide": true,
"bDestroy": true,
"bAutoWidth": true,
"sScrollX": "940px",
//"sScrollY": "250px",
"bScrollCollapse": true,
"aoColumns": [
null,
null,
null,
null,
null,
null,
{ "bSortable": false }
] ,
"sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
"oTableTools": {
//"sSwfPath": "/public/swf/ZeroClipboard.swf",
"sSwfPath": "//swf/copy_csv_xls_pdf.swf",
"aButtons": [
"copy",
"csv",
"xls",
{
//"sExtends": "collection",
"sExtends": "pdf",
"sTitle": "Report Name",
"sPdfMessage": "Summary Info",
"sPdfOrientation": "landscape",
//"sSwfPath": "/swf/ZeroClipboard.swf",
"fnClick": function( nButton, oConfig ) {
this.fnPrint( true, oConfig );
},
"print"
]
},
"sAjaxSource": url,
"fnServerData": function ( sSource, aoData, fnCallback ) {
// Add some extra data to the sender
//aoData.push();
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
}
});
The buttons of TableTools are getting displayed but nothing is happening on clicking on them,
Hi Aallan,
Please i need your help, i got this error in my project and its make a lot of trouble,i need your help to fix it. TypeError: this.s.dt is null if ( this.s.dt.bJUI ) on line 657 and 34 in the minify file.
This is the project link http://techno-serviceskm.org/sms/
username : bacar@sms.com
pass:12345678
Thanks,
Bacar