I have a xhtml page with a table in which more than 1,000 rows are loaded after a JavaScript function that captures the contents of the table and downloads it with a <a>
in the form of xls , the problem is that when you download it says: Descarga: error de red
the funny thing is that this does not happen when the table has less amount of rows
JavaScript:
function e(){
var e=document.getElementById("e");
var a=document.getElementById("a");
var def=e.outerHTML;
a.href="data:application/vnd.ms-excel,"+ encodeURIComponent(def);
a.download="csv.xls";
a.click();
}