Unable to download CSV or Excel data ( Codeignitor + TableTools + url ? )
Unable to download CSV or Excel data ( Codeignitor + TableTools + url ? )
psgganesh
Posts: 1Questions: 0Answers: 0
Hi All, please bear with me am a newbie i am unable to use any of the buttons of table tools when i click on the button, it only reloads the page by appending a ? in the end of the url, below is my code...Can anyone please help me out..??
[code]
var oTable_production_plan;
oTable_production_plan = $('#bbs_orders_prod_plan_nailing_list').dataTable({
"bProcessing": true,
"iDisplayLength": 9,
"bFilter": false,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": '<"H"Tfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": ""+app_url+"assets/js/datatables/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"copy", "csv", "xls", "pdf",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
},
"aoColumns": [ null,null,null,null,null,{"bVisible":false} ],
"bServerSide": true,
"aoColumnDefs": [{ bSortable: false, aTargets: ['noSort'] } ],
"sAjaxSource": ""+app_url+"assets/js/datatables/orders/production/nailing_list.php?list_name="+list_name+"",
});
[/code]
[code]
var oTable_production_plan;
oTable_production_plan = $('#bbs_orders_prod_plan_nailing_list').dataTable({
"bProcessing": true,
"iDisplayLength": 9,
"bFilter": false,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": '<"H"Tfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": ""+app_url+"assets/js/datatables/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"copy", "csv", "xls", "pdf",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
},
"aoColumns": [ null,null,null,null,null,{"bVisible":false} ],
"bServerSide": true,
"aoColumnDefs": [{ bSortable: false, aTargets: ['noSort'] } ],
"sAjaxSource": ""+app_url+"assets/js/datatables/orders/production/nailing_list.php?list_name="+list_name+"",
});
[/code]
This discussion has been closed.
Replies