TableTools2.1.2 not working with Google Chrome and Safari.
TableTools2.1.2 not working with Google Chrome and Safari.
deepak
Posts: 13Questions: 0Answers: 0
Hi,
Firstly, Thanks for the great project.
I have used TableTools v2.1.2 from git and from DataTable1.9.2. Here is my code below.
[code]
$oAllTable = $('#_datatable').dataTable({
"bDestroy": true,
"sDom": '<"H"Tfr>t<"F"ip>',
"bJQueryUI": true,
"bProcessing": true,
"bDeferRender": true,
"oTableTools": {
"sSwfPath":"/media/tables/DataTables-1.9.2/extras/TableTools/media/swf/copy_csv_xls_pdf.\
swf",
"aButtons": [ "copy",
"print",
{
"sExtends": "csv",
"sFileName": i+".csv",
"sButtonText": "Save to CSV"
}
]
},
"oLanguage": {
"sEmptyTable": "loading..."
},
"sAjaxSource": "/example?name="+i,
"aoColumns": [
{"sTitle": "CID", "mDataProp": "fields.cid"},
{"sTitle": "Owner","mDataProp": "fields.owner" },
{"sTitle": "Classification","mDataProp": "fields.classification" }
],
"aoColumnDefs": [
{
"fnRender": function ( oObj ) {
return ""+oObj.aData["fields"]\
["cid"]+ "";
},
"aTargets": [ 0 ]
}
]
});
[/code]
Above code works fine with IE8 and FF13 , but its not working with Chrome 20.0.1132.47 and safari.
There is no error reported in Firebug.
Any idea, how to resolve this?
--
gnmk
Firstly, Thanks for the great project.
I have used TableTools v2.1.2 from git and from DataTable1.9.2. Here is my code below.
[code]
$oAllTable = $('#_datatable').dataTable({
"bDestroy": true,
"sDom": '<"H"Tfr>t<"F"ip>',
"bJQueryUI": true,
"bProcessing": true,
"bDeferRender": true,
"oTableTools": {
"sSwfPath":"/media/tables/DataTables-1.9.2/extras/TableTools/media/swf/copy_csv_xls_pdf.\
swf",
"aButtons": [ "copy",
"print",
{
"sExtends": "csv",
"sFileName": i+".csv",
"sButtonText": "Save to CSV"
}
]
},
"oLanguage": {
"sEmptyTable": "loading..."
},
"sAjaxSource": "/example?name="+i,
"aoColumns": [
{"sTitle": "CID", "mDataProp": "fields.cid"},
{"sTitle": "Owner","mDataProp": "fields.owner" },
{"sTitle": "Classification","mDataProp": "fields.classification" }
],
"aoColumnDefs": [
{
"fnRender": function ( oObj ) {
return ""+oObj.aData["fields"]\
["cid"]+ "";
},
"aTargets": [ 0 ]
}
]
});
[/code]
Above code works fine with IE8 and FF13 , but its not working with Chrome 20.0.1132.47 and safari.
There is no error reported in Firebug.
Any idea, how to resolve this?
--
gnmk
This discussion has been closed.
Replies
Allan
Its on Intranet , so will not be able to provide you link ? but I can provide you the code which I have written ?
Let me know how can I give more information.
--
gnmk
To add on, I have used datatable debugger to debug and data is available at http://debug.datatables.net/ezaheb , hope this will help.
--
gnmk
Allan
http://datatables.net/release-datatables/extras/TableTools/collection.html , In this example only csv works in chrome not all ?
Can you please let me know the TableTools version , I will try that. Also note that version 2.0 works with all the browser except IE and for IE if we use protection mode off then it works.
--
dk
--
dk
--
dk
I have tested http://datatables.net/release-datatables/extras/TableTools/defaults.html all the "csv" and "xls" and none of them are working . Only "copy" , "print" and "copy to div" is working fine.
--
dk
Works no problem for me in Safari, Chrome, Firefox. Do you defiantly have Flash available for these browsers? Is there anything showing on the browser's console for you?
> http://datatables.net/release-datatables/extras/TableTools/collection.html , In this example only csv works in chrome not all ?
No - that example is unfortunately broken in all browsers at the moment :-(. I'll be fixing that as part of the 2.1.3 release for TableTools.
Allan
I have used http://datatables.net/release-datatables/extras/TableTools/index.html but still it does not work with Chrome and Safari ?
Is there any issue with mDataprop and TableTools?
Which version are you using ? let me try with your setup.
--
gnmk
http://datatables.net/forums/discussion/10721/tabletools-button-collections-bug-#Item_5
> http://datatables.net/release-datatables/extras/TableTools/index.html
Works no problem for me in current Chrome and Safari.
> Is there any issue with mDataprop and TableTools?
No - not as far as I am aware.
@equisde:
> http://datatables.net/forums/discussion/10721/tabletools-button-collections-bug-#Item_5
That is an annoying bug, and I'll fix that shortly, but deepak linked to the basic TableTools example, which doesn't use collections.
Allan
Oops! you´re right!. Sorry for my mistake.
This http://datatables.net/release-datatables/extras/TableTools/index.html is working with your code ? but its not working with Datatable 1.9.2 one. Do you have different source then 1.9.2 , if yes do let me know I will copy those.
Thanks a lot for your time.
--
gnmk
Let me debug this, I will remove all the option and re test it. I will update you again.
Let me know if there are any other way to debug more apart from firebug and developer tools.
--
gnmk
Its on official intranet page, I am not suppose to disclose this. I will try to create another page and will send you all code . hope that will help.
--
deepak
First I will try myself and then will send you the code if require.
Thanks much.
--
dk