PDF, CVS Button doesnt work with editor ?

PDF, CVS Button doesnt work with editor ?

mvitalmvital Posts: 8Questions: 0Answers: 0
edited August 2013 in Editor
i have this on my tabledata initialisation all buttons all working except the PDF and CSV button ?

[code]$('#marcas').dataTable( {
"sDom": "Tfrtip",
"sAjaxSource": "php/table.marcas.php",
"aoColumns": [
{
"mData": "id_marca"
},
{
"mData": "marca"
}
],
"oTableTools": {
"sRowSelect": "single",
"aButtons": [

{ "sExtends": "editor_create", "editor": editor },
{ "sExtends": "editor_edit", "editor": editor },
{ "sExtends": "editor_remove", "editor": editor },
{ "sExtends": "pdf", "sPdfOrientation": "landscape","sPdfMessage": ""},"csv", "print"

]

}
} );
[/code]

can someone help me with this ?

Replies

  • allanallan Posts: 63,532Questions: 1Answers: 10,475 Site admin
    Very likely there is a 404 error on the Flash movie clip that is used for those two buttons. If you look at the console in your browser, or your server error log, do you see any errors?

    Allan
  • mvitalmvital Posts: 8Questions: 0Answers: 0
    hi Allan

    yes i have an error 404 :
    Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/ambiauto/Stock/testes/media/swf/copy_csv_xls_pdf.swf

    where i can find the swf file ?

    regards,
    Mario Vital
  • allanallan Posts: 63,532Questions: 1Answers: 10,475 Site admin
    It should be in the download package, but its possible (thinking about it) that the Editor package doesn't have those files... They are, however, available here: https://github.com/DataTables/TableTools/tree/master/media/swf

    Regards,
    Allan
  • mvitalmvital Posts: 8Questions: 0Answers: 0
    done.

    thz Allan
This discussion has been closed.