csv does not work in Edge
csv does not work in Edge
greg123
Posts: 2Questions: 1Answers: 0
I have latest DT downloaded month back
In Chrome everything works
in Edge CSV button is dead
In Edge Excel download button renders below .excl[1] downloading but when I click Open it reads cannot download
I use:
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/t/ju-1.11.4/jqc-1.12.0,jszip-2.5.0,pdfmake-0.1.18,dt-1.10.11,b-1.1.2,b-flash-1.1.2,b-html5-1.1.2,b-print-1.1.2,r-2.0.2/datatables.css"/>
$("#Search").click(function () {
var table = $('#txndetails').DataTable();
table.destroy();
$('#txndetails').DataTable({
ajax: {
url: "../admin/get-tran-aggr-csv.axd?q=today",
//url: "../TextFile1.txt",
dataSrc: 'data',
data : function ( d ) {
d.DateFrom = $('#tbxDateFrom').val();
d.DateTo = $('#tbxDateTo').val();
}
},
columns: column_titles,
dom: 'lBfrtip',
buttons: [
{
extend: 'collection',
text: 'Export',
buttons: [
'copy',
'excel',
'csv',
'pdf',
'print'
]
}
]
});
return false;
});
});
This discussion has been closed.
Answers
Thanks for letting me know about this. i'll look into it and post back when I have my Edge machine.
Allan
Sorry for the delay for me to look into this. I've just tried example here in Edge 25.10586.0.0 and it appears to work as expected for me.
Could you confirm if that example works in Edge for you or not?
Thanks,
Allan
Allan
thanks for help! I solved it and reporting now
The bug is indeed IE 11 and Edge specific but very unusual
My page has empty Title!
and the _filename that is being generated starts then with "." and navigator does not like it
Very interesting - thanks for letting me know about that. I'll put in a fix to have the title be "Exported data" when there is no title tag or it is empty. I'll post back here when committed.
Allan
Fix committed.
Thanks again!
Allan