Click to See Complete Forum and Search --> : Saving to files
geuis
03-11-2003, 07:52 AM
I know that you cannot write to files in Javascript, but I am wondering if there is a "poor-man's alternative." Without getting too complicated, I would like to save some typed data in a text box to a text file, maybe with some basic formatting like carriage returns so that the text is put in by lines.
Thanks for any help.
PHP would be a great way to do this. Does your server support it?
geuis
03-11-2003, 08:30 AM
Actually, what I am trying to do is to write a tool for my job so that we can document certain information locally. No, I can't run a PHP server.
Basically, I am running the HTML pages from locally stored files, and I need to be able to save the data locally to a text file or Excel spreadsheet. Either will work just fine, but writing to a text file is probably easier. Thanks.
Well, that is not going to be possible client side and cross browser...
geuis
03-11-2003, 09:03 AM
I have heard that something like this can be done using ActiveX. Is that so?
Quite probably. I don't know much about ActiveX, but I'd be willing to bet that it might work. I'm not sure what the compatablity issues with ActiveX are, though... I do know that alert's will popup when you try to write a text file on the users computer.
Nevermore
03-11-2003, 01:04 PM
If active X works like Flash does - and it does for a lot of things - then this has to be on a server with special programs installed.