1

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?

3
  • Javascript shouldn't be dealing with the file system. It's the language of the browser. Commented Feb 5, 2014 at 12:42
  • @duffymo these days, JavaScript as a language is hardly limited to the browser... Commented 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. Commented Feb 5, 2014 at 18:28

2 Answers 2

2

Yes ActiveX works only in IE. Please take a look at File System APIs of HTML5 which may help you

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.