csv does not work in Edge

csv does not work in Edge

greg123greg123 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;
    });
});

Answers

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin

    Thanks for letting me know about this. i'll look into it and post back when I have my Edge machine.

    Allan

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin

    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

  • greg123greg123 Posts: 2Questions: 1Answers: 0

    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

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin

    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

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin

    Fix committed.

    Thanks again!
    Allan

This discussion has been closed.