:: Forum >> Version 1 >>

Writing Data from the HTML controls to Text File.

More information on this topic is available in the documentation section: /active.howto/.

I want to write the data entered in the HTML controls such as "Textbox", "Combobox" to a Text file using HTML or Javascript.
Venkatesh
Thursday, October 13, 2005
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
Friday, October 14, 2005
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)?
conny
Thursday, October 27, 2005
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
Thursday, October 27, 2005
well you can write in the client if and only if he is using mozilla and enable remote permitions
talus
Monday, December 5, 2005



This topic is archived.

Back to /active.howto/

Documentation:

Forum search