This is the code I used to create a data table with export functionality.
oTable = $("#tblSearch").DataTable({
"jQueryUI": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"bSort": true,
"aaSorting": [[0, "desc"]],
"lengthMenu": [[5, 10, 25, 50], [5, 10, 25, 50]],
"autoWidth": true,
"scrollCollapse": true,
"dom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "../../swf/copy_csv_xls.swf",
"aButtons": ["xls"]
}
});
Export is working in my local but when I deployed in server, the button does not appear.