Writing Data from the HTML controls to Text File.

I want to write the data entered in the HTML controls such as "Textbox", "Combobox" to a Text file using HTML or Javascript.
October 13,
If you are talking about writing the data to the Client computer then that is currently not an officially supported JavaScript ability. Officially, JavaScript is a 'sandbox' and you can not read/write to the host computer. With that said, M$ has added an ActiveX to IE that will allow you to read/write to the host computer IF ActiveX is turned on and you are using a newer version of IE. Alex posted a code sample elsewhere showing how he builds the redistributable version of the JS file and in that example he uses this IE object. Do a search of the forum, you should be able to find it.
Jim Hunter
October 14,
Is that mean read/write to host computer can work , but read/write to client computer is still cannot work (using javascript or activeX or else)?
October 27,
If you want to write the data on the Server, you would need a script that does that for you (PHP, ASP, JSP,...), you can not do this with pure HTML/Javascript.

If you want to write the data to the Client you could use cookies.
Josef Stich
October 27,
well you can write in the client if and only if he is using mozilla and enable remote permitions
December 5,

This topic is archived.

See also:

Back to support forum