Is there a way to get input from a file on the users hardrive using javascript? perhaps this is those "cookies" type thing.
Printable View
Is there a way to get input from a file on the users hardrive using javascript? perhaps this is those "cookies" type thing.
Are you talking about setting some configuration settings on a hard drive, then accessing them when the user re-visits your site?
If your talking about creating and reading files on the hard drive such as text files, or any other type, no, you can't. It would be a security concern if you could.
What i really need to do is have the values of an array stored in case the person comes back the values can be loaded and used by javascript right away.
this possible?
Yes you are probably going to need cookies then.
Check here, it pretty much gets right into it.
http://hotwired.lycos.com/webmonkey/...y/wm_ckie_lib/
Good luck
i looked at that but let me ask you guys: I basically have an array that i need to store, can this bve done using cookies?
is it in this link and i need to look harder?
I am not very knowledgable about cookies, but couldn't you just put your array in string form, seperated by delimiters. Then set the cookie to save the string. When it is time to get the information back, you read in the string, and parse it into an array again.
This is all theory, I haven't done it. Sorry if I didn't help at all.
that is a great call the string idea. I think i will try that
cool thanks. ill try it and let you know