katia Posted May 31, 2006 Share Posted May 31, 2006 I am using this JScript code to write info in a text file. filename is a string that contains the path to my file (by getting the current directory and then concatenating with the path where the file is)function writetofile(filename,info){var ForAppending=8;var fso = new ActiveXObject("Scripting.FileSystemObject");var ts = fso.OpenTextFile(filename, ForAppending, false); ts.WriteLine(info);ts.Close();}This code works when I test my web page ON my computer. The question is will it work on line? Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 2, 2006 Share Posted June 2, 2006 I don't know anything about JScript I can't help you with that, but I can say there might be an easier way (without the knowledge of ActiveX objects) to write something in a file at server-side, take PHP for an example Link to comment Share on other sites More sharing options...
molloyboy08 Posted July 3, 2006 Share Posted July 3, 2006 it will work if the user selects yes to running activex object if its set to ask. if its not set to ask then its automatically a yes. Hope it helps. Mind if i ask what it is your planning to write to someones computer over the internet Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now