TableTools2.1.2 not working with Google Chrome and Safari.

TableTools2.1.2 not working with Google Chrome and Safari.

deepakdeepak Posts: 13Questions: 0Answers: 0
edited July 2012 in TableTools
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

Replies

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    Can you link to a page showing the problem please?

    Allan
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    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
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    Allan,
    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
  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    It looks okay from the debugger, and as you can see on this site TableTools should work okay in Webkit, so I'm afraid I would need to be able to see a test case showing the problem. You might be able to recreate the problem using http://live.datatables.net ?

    Allan
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    Let me try with other examples.
    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
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    Also , When I keep mouse pointer to "pdf" in above example "xls" is getting highlighted. Let me know where I can post screenshot if you want.


    --
    dk
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    http://datatables.net/release-datatables/extras/TableTools/index.html is also not working except "copy" and "print".


    --
    dk
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    Allan,
    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
  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    > http://datatables.net/release-datatables/extras/TableTools/index.html

    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
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    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
  • equisdeequisde Posts: 34Questions: 0Answers: 0
    I think he is talking about this bug...

    http://datatables.net/forums/discussion/10721/tabletools-button-collections-bug-#Item_5
  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    @deepak:

    > 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
  • equisdeequisde Posts: 34Questions: 0Answers: 0
    @allan

    Oops! you´re right!. Sorry for my mistake.
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    Allan,
    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
  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    @deepak - http://datatables.net/release-datatables/extras/TableTools/index.html does use DataTables 1.9.2: http://debug.datatables.net/ifeviw
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    Allan,
    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
  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    If you give us a link, we might be able to tell you why it is not working.
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    Allan,
    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
  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    PM me with the link if you want - I'll keep it to myself :-)
  • deepakdeepak Posts: 13Questions: 0Answers: 0
    Sure Allan,
    First I will try myself and then will send you the code if require.


    Thanks much.

    --
    dk
This discussion has been closed.