Click to See Complete Forum and Search --> : file creation!?


caeli82
08-11-2003, 10:55 AM
ok, so is there a way that if you're using offline webpages to create a text file using javascript. im trying to save form data to a text file on my hard drive as a fun and interactive way of taking down information from customers to my store. so im just wondering if that's even a possibility.

thanks in advance, Caeli*

pyro
08-11-2003, 11:03 AM
Not sure exactly what you are asking, but from the sounds of it, the answer is "no". You'd be better off using a serverside language to save the data to a .txt file on the server or have the results mailed back to yourself.

caeli82
08-11-2003, 11:06 AM
ok...thanks. i guess i'll just figure out something else...

brendandonhue
08-11-2003, 11:08 AM
If your using IE only, then yes you can. I don't have the code, I think someone named Dave or something is the one that posted it.

pyro
08-11-2003, 11:11 AM
Perhaps it can be done in ActiveX, but in plain old JavaScript, it should not be able to be done. If it can be done by using some sort of hack, it is a security breach...

brendandonhue
08-11-2003, 11:20 AM
Yea it was ActiveX

caeli82
08-11-2003, 09:31 PM
ok, so can either of you point me in the right direction as far as using ActiveX? im really just trying make it so that i enter data into a form and the "onSubmit" string sends the data to a document on my harddrive for retrieval. i realize i could prolly do all that another way, but im just trying out this way. any links to scripts or otherwise would be appreciated.

thanks, Caeli*

pyro
08-11-2003, 10:17 PM
ActiveX is not very well supported. It is IE only for one thing, and many people turn it off, for another thing. The default setting is off for unsigned scripts, and prompt for signed script, I believe. I woudn't recommend doing it that way...