jQuery TableTools not working

后端 未结 3 804
無奈伤痛
無奈伤痛 2021-01-17 03:13

I have downloaded example

from TableTools. Which is working fine. what i did is i copied the content of the index.html to another file and associated every path. Fla

相关标签:
3条回答
  • 2021-01-17 03:43

    Think this will help

    "sDom": 'T<"H"plfr>t<"F"ip>',
    "oTableTools": {
                "aButtons": [ "csv", "pdf" ],
                "sSwfPath": "https://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
            }
    
    0 讨论(0)
  • 2021-01-17 03:52

    Instead of an sSwfPath value to a local file, try this url:

    http://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_x‌​ls_pdf.swf

    For some reason this provides functionality for me, but the local file does not.

    0 讨论(0)
  • 2021-01-17 04:03

    Basically the problem is about the specify the swf path incorrectly.

    "sSwfPath": "http://localhost/TableTools/media/swf/ZeroClipboard.swf"
    

    Try to replace this path with

    "sSwfPath": "../media/swf/ZeroClipboard.swf"
    
    0 讨论(0)
提交回复
热议问题