Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Save local file with Javascript?


Message #1 by glittle@e... on Mon, 28 Jan 2002 20:18:36
I am wanting to make a set of HTML + Javascript pages that can be put on 
the harddrive of a laptop and opened up in Internet Explorer 5+. There is 
NO server involved.

I can load data from the harddrive, but it is difficult to save any data.

If I try to use the FileSystemObject, the user is constantly being warned 
about a security risk, which is valid. If I try to use an XML DOM object 
in the code, the dom.Save method is not allowed.

So, is there a way?

I just want to allow the user to view the page and save information that 
they've typed into the page to same directory on their drive.

Even if they have to give approval for the script to write to the disk, 
that is not too bad once. But if they get the warning every time they view 
the page, it just won't work.

Another option I'm exploring is to use IE UserData persistance to keep the 
data in the browser. When desired, they can "import" data from the disk, 
or "download" the fresh data and save it to their disk.

Thanks for any ideas!
Glen


  Return to Index