Generating Files with JavaScript
This time we will be making a jQuery plugin which, combined with a simple php script, can generate a file and make it available for download. Perfect for exporting the settings of your webapp or providing reports.
Tutorialzine