Use jQuery to send Excel data using AJAX

前端 未结 4 556
既然无缘
既然无缘 2020-12-13 18:13

I have the following function that is pulling data from a database. The ajax call is working correctly. How can I send the tab delimited data in my success function to the

4条回答
  •  没有蜡笔的小新
    2020-12-13 18:40

    Since it uses JavaScript, AJAX is bound by JavaScript's designed limitations, which includes interacting with other processes on the client's machine. In this case, it's a good thing; you wouldn't want a site to be able to automatically load an Excel document with a malicious macro in it.

    If you want to display the data in the browser, you can use AJAX; otherwise, you'll want to just give a link to an Excel document and let the browser's regular download handling capabilities figure out what to do.

提交回复
热议问题