Results 1 to 7 of 7

Thread: Input and Out put to a file wiht Java Script

  1. #1
    dmartin17
    Guest
    Is there a way to get input from a file on the users hardrive using javascript? perhaps this is those "cookies" type thing.

  2. #2
    Guest
    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.

  3. #3
    dmartin17
    Guest
    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?

  4. #4
    hellswraith
    Guest
    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

  5. #5
    dmartin17
    Guest
    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?

  6. #6
    hellswraith
    Guest
    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.

  7. #7
    dmartin17
    Guest
    that is a great call the string idea. I think i will try that
    cool thanks. ill try it and let you know

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width