Log in

View Full Version : How to open and save text files using Javascript ?



Aster Saini
12-02-2009, 11:00 AM
Hi

First of all, let me tell you that this is not a homework question, since i am no longer in college, i don't get homework.

Ok now to the question => Can you please give me a little example java script to open and save text files

Thank you in advance

jscheuer1
12-02-2009, 03:02 PM
This cannot be done with javascript alone. If you mean on the server, you would have to gate to server side code. This could be done with something AJAX'y, or with a simple form (no javascript required), and various methods in between and the server-side code would vary depending upon what if anything that does that is available to and enabled for you on that server.

If you mean on the user's computer, there is Active X in IE and Java (not javascript) for others, as well as IE. These are subject to heavy security restrictions though.

What exactly are you trying to do?