hhurz / tableExport.jquery.plugin

jQuery plugin to export a html table to JSON, XML, CSV, TSV, TXT, SQL, Word, Excel, PNG and PDF
MIT License
990 stars 716 forks source link

get data from ajax request #299

Closed wonderiuy closed 4 years ago

wonderiuy commented 4 years ago

Hello hhurz, let's start with aq big thank you for you super work here. Isuppose this is a feature request because I can't manage to let tableExport grab the data from ajax call. IE: I have the table as respose of a $.get('excel.aspx', function(data) { ... the "data" contains the table How can i use tableExport on that "data" without putting it in the DOM? Thank you in advance

hhurz commented 4 years ago

Hi, you are right: The plugin requires the table as a DOM element. Most of the parsing process depends on this. Actually I see no way to implement your request. Thanks.

wonderiuy commented 4 years ago

Thank you for the fast reply. Will proceed as suggested