Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you create files with JavaScript? [duplicate]

Possible Duplicate:
Force download of ‘data:text/plain’ URL
Create a downloadable link from a vriable in javascript

I have seen plugins that can create/generate files (.txt, .pdf, .vcard) and I'm not exactly sure how it's done. Are these done through Ajax? Or is there an object/method I'm missing?

like image 639
Dandy Avatar asked Nov 12 '22 14:11

Dandy


1 Answers

Html5 does support access to File System. Below link has a good example:

http://www.html5rocks.com/en/tutorials/file/filesystem/

like image 103
malkassem Avatar answered Nov 15 '22 07:11

malkassem