Log in

View Full Version : Client-side scripting with file writing?



HR19
12-30-2009, 04:37 AM
Are there any client-side scripting languages that can write to a text file? I've learned that JavaScript can, but only if you use an ActiveXObject, which won't work on my iPod touch (my ultimate goal). Or is there a library somewhere that I can access that will let me do that from JavaScript?

djr33
12-30-2009, 11:44 AM
An iPod touch has no real way to do this. I do not believe that there is any way to get Java applets to work (just like Flash doesn't work), and that's the best answer I can think of for your goal.

ActiveX is IE-only, and the only other ways to do this involve plugins/applets like flash, java, etc.

You could alternatively create serverside storage where you connect it to a login or identifier (maybe a cookie, if it is only temporary), and then the files are stored per user, but just on the server and not on the ipod.

In short, the web is not designed to do what you are trying to do.

What is your actual goal with this? You want to have a way to download a text file onto your ipod? You might have better luck finding out how to build an app.