Jump to content

Exporting text for download


artacus

Recommended Posts

Ok, I have a php app that can generate a pretty large table. I want:
[list]
[*]The user to be able to download that data as a CSV  file.
[*]The CSV should be created in Javascript because its already there.
[*]The file to be treated as a download by the browser.
[/list]

I've already written the Javascript to rip the data out of the table and make the CSV data. If I were using PHP for this I would use header content-type and disposition calls to get the browser to do what I want. How do I do that using Javascript?

Thanks
Link to comment
https://forums.phpfreaks.com/topic/28912-exporting-text-for-download/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.