jquery-table2excel icon indicating copy to clipboard operation
jquery-table2excel copied to clipboard

This plugin worked two weeks ago but isn't working now for IE 11

Open Yangk402 opened this issue 8 years ago • 1 comments

This plugin can save table to html excel but can't open. When it opens, nothing appears. It works well for Chrome.

Yangk402 avatar Jul 20 '16 05:07 Yangk402

@Yangk402

change code:

           if (typeof Blob !== "undefined") {
                    //use blobs if we can
                    fullTemplate = [fullTemplate];
                    //convert to array
                    var blob1 = new Blob(fullTemplate, { type: "text/html" });
                    window.navigator.msSaveBlob(blob1, getFileName(e.settings) );
             } 

to:

             if (typeof Blob !== "undefined") {
                    //use blobs if we can
                    fullTemplate=e.format(fullTemplate, e.ctx);
                    fullTemplate = [fullTemplate];
                    //convert to array
                    var blob1 = new Blob(fullTemplate, { type: "text/html" });
                    window.navigator.msSaveBlob(blob1, getFileName(e.settings) );
                }

speed avatar Jul 30 '16 10:07 speed