Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: writing data to txt file


Message #1 by "James Brown" <wussap25@y...> on Sat, 10 Aug 2002 16:30:59
----- Original Message -----
From: "James Brown" <wussap25@y...>
To: "javascript" <javascript@p...>
Sent: Saturday, August 10, 2002 4:30 PM
Subject: [javascript] writing data to txt file


> Hello,
> I have asked something like this many times, so idecided to refrace the
> question, is there any function or property or something in javascript
> that allows the creation of a txt file? Or if the txt file is already
> created is there any way to populate it with data from another page in the
> site?. Thanks in advance.
>
If you are talking about creating a text file on the user's machine using
client-side code then it is only possible if the user has very low security
settings, typically the site would be in the intranet zone or a trusted
site. You could use the FileSystemObject from an IE browser and Java code
from Netscape. There are dozens of articles on using the former on MSDN etc.

If you mean creating a text file on the server then again from ASP you can
use the FileSystemObject but now the security settings must be manipulated
on the server to give the account running the web server permissions on the
appropriate folders.

Joe


  Return to Index