Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 11th, 2005, 11:19 AM
Authorized User
Join Date: Jun 2003
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default write values to txt file in server


I don't work with javascript but to finish a project to a client my company needs to do several things. One of them it's to give to the client a few scripts that make some calculations and at the end the values will need to be written to a txt file in the server (this will work in a Intranet). A read about Javascript and I understood (correct me if I'm wrong...) it works from the client-side, so it's not possible to write to the server. I also read some question in a search I made in Google and in some sites they talked about using the FileSystemObject. Does any of you knows another way of dealing with this or have other suggestions? I'll appreciate all the help you can get.


Elisa Resina
Elisa Resina
Old July 19th, 2005, 05:11 AM
Authorized User
Join Date: Jul 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prophet Send a message via MSN to prophet

The FileSystemObject can be used (given the proper security settings) to write to the client machine, I do believe.

If you want to write to the server, you can use JavaScript to pass variables, or whatever you'd like to a server-side application (php, asp, etc), which in turn could write a file to the local machine (server).

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP write to txt file dizzy1 Classic ASP Basics 7 June 15th, 2010 10:38 PM
write the values of textbox to a file sandhyamn Pro JSP 1 May 23rd, 2007 10:04 AM
Problem : Write to txt file al-hijjawi ASP.NET 1.0 and 1.1 Basics 0 April 10th, 2006 04:32 AM
write values to txt file in server eresina Javascript 7 July 19th, 2005 08:23 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.