Export excel

Export excel

enms21enms21 Posts: 2Questions: 1Answers: 0
edited October 2018 in Free community support

hello guys, I have error with java script my error is this:

buttons.html5.min.js:13 Uncaught (in promise) TypeError: (a.URL || a.webkitURL || a).createObjectURL is not a function
at new k (buttons.html5.min.js:13)
at buttons.html5.min.js:15
at buttons.html5.min.js:31

I want to export my table to excel . my program dont export my excel file. it appears load simbol

it is my code in Java script:

function tablaliqpen() {
    $.ajax({
        type: "POST",
        url: "php/accion/post.php",
        data: {op: 'tablaliqpen'},
        dataType: "json",
        cache: false,
        success: function (a) {

            
            
            $('#tablaliqpen').DataTable({
                
        dom: 'Bfrtip',
        buttons: ['excel'],
        destroy: true,
        responsive: true,
        language: {
                "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Spanish.json"
                  },
                

                columns: [
                    
                    {title: 'colum1'},
                    {title: 'colum2'},
                    {title: 'colum3'},
                    {title: 'colum4'}
                ],
                data: a['data']
            });
        },
        error: function (xhr, ajaxOptions, throwError) {
            console.log(xhr); console.log(ajaxOptions); console.log(throwError);
        }
    });

    return false;
}

i dont undestand the error and i dont know some solutions for resolve this problem.
Tranks

This question has an accepted answers - jump to answer

This discussion has been closed.