I am trying to learn, how to create, write and save a txt file (in any directory) using javascript. All, I found was using ActiveX which works only in IE. Does anybody know how can it be done in Chrome or Safari?
-
Javascript shouldn't be dealing with the file system. It's the language of the browser.duffymo– duffymo2014-02-05 12:42:45 +00:00Commented Feb 5, 2014 at 12:42
-
@duffymo these days, JavaScript as a language is hardly limited to the browser...David Hellsing– David Hellsing2014-02-05 12:45:17 +00:00Commented Feb 5, 2014 at 12:45
-
I agree w/ that, but still not for file system. i'm guessing the OP is using it in the browser/sandbox and wondering why they're having trouble.duffymo– duffymo2014-02-05 18:28:57 +00:00Commented Feb 5, 2014 at 18:28
Add a comment
|
2 Answers
Yes ActiveX works only in IE. Please take a look at File System APIs of HTML5 which may help you
Comments
Refer this link downloadify.If you don't have any issues on Flash vulnerabilities in your application, you can go with this. This plugin internally uses flash file to create flat files(but limited to txt, excel and csv types) from javascript. Hence burden on server will be reduced thus increases the productivity and performance of the application.