This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ค้นหาฝ่ายสนับสนุน

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

เรียนรู้เพิ่มเติม

Excel file not containing the whole html table when downloading

  • 1 การตอบกลับ
  • 1 คนมีปัญหานี้
  • 1 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย Shadow110

more options

This is the code I am using in my jquery function

if (browser == "Firefox") {

               ////getting data from our div that contains the HTML table
               var data_type = 'data:application/vnd.ms-excel';
               var table_div = document.getElementById('div_Previewhtml');
               var table_html = table_div.outerHTML.replace(/ /g, '%20');
               var a = document.createElement('a');
               document.body.appendChild(a);
               ////setting the file name
               a.download = "Change" + MasterId + '.xls';
               a.href = data_type + ', ' + table_html;
               ////triggering the function
               a.click();
           }

But output excel is only half generated, what is wrong?

This is the code I am using in my jquery function if (browser == "Firefox") { ////getting data from our div that contains the HTML table var data_type = 'data:application/vnd.ms-excel'; var table_div = document.getElementById('div_Previewhtml'); var table_html = table_div.outerHTML.replace(/ /g, '%20'); var a = document.createElement('a'); document.body.appendChild(a); ////setting the file name a.download = "Change" + MasterId + '.xls'; a.href = data_type + ', ' + table_html; ////triggering the function a.click(); } But output excel is only half generated, what is wrong?

การตอบกลับทั้งหมด (1)

more options

HI, no idea : Since you are compiling code please see Stackoverflow.com for help with your code or google into github. This is beyond what Firefox Volunteer Support does.

Please let us know if this solved your issue or if need further assistance.