Does anybody have a short (or long) example on how to save and load a text file from a client computer using ajax? I will be grateful for any examples/links.
I found a site that said ajax could be used with javascript to save and load text files on a client computer, but it did not say how. The js I am making used cookies, but I needed more storage than what is allowed for cookies.
The only way to do what you're trying to accomplish (without cookies) is to use an ActiveX object which restricts you to I.E. only, and only after a security warning box pops up on the user's screen that they have to click OK on. And if they don't click OK (after being warned about the possible security thread - which usually causes them to click Cancel) then your script will not work.
Why would the browsers be limited so much on doing such a mundane task you ask? The answer is very simple - take the question in your original post and replace all instances of "text file" with "virus". You may not have such malicious intentions, but if what you're trying to accomplish was possible, people that did have malicious intentions would run wild.
-kaht
How much you wanna make a bet I can throw a football over them mountains?
There is a flash object that can save data to disk. If the user has flash (and many do) you can use that. I don't know how to do it though - I just saw a mention about it.
Better yet, check out a program called AMASS (Ajax MAssive Storage Sub-system) here:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.