Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Writing to local disk using JavaScript

    Is there a method to write to the local disk using JavaScript ?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i beleive it is impossible unless you want it written as a cookie.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Use the privilegeManager and LiveConnect to do it in Netscape, and WSH FileSystem objects through ActiveX for IE.

    I don't have any examples offhand, but I also can't imagine why you'd need to write something to their hard drive... unless this is for intranet purposes or something.

  • #4
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by jkd
    Use the privilegeManager and LiveConnect to do it in Netscape, and WSH FileSystem objects through ActiveX for IE.

    I don't have any examples offhand, but I also can't imagine why you'd need to write something to their hard drive... unless this is for intranet purposes or something.
    this situation is for a user connected to a remote server, except that the server goes down. in this case the user can access an HTML form and enter info that will be printed. i want to write some of the info to disk, so that it can be recalled when needed by the user.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    If you are just talking about some basic form information then cookies would be the way to go.

  • #6
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    i've done work with the Windows Scripting Host ActiveX controls. they can only really be effectively used on an intranet, or IE's default security settings will block them. I've never used Live Connect in Netscape, but i've heard that IE doesn't like the Java that opens file. What it comes down to, is that as far as i know, there's no easy crossbrowser way to write to files to the client side.

    if you're only going to save information about forms, then like John said, a cookie is the way to go.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.


  •  

    Posting Permissions

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