Form Output to a Text File

J

JMS1987

Can JavaScript be used to write the output from an HTML form to a text
file? The scenario would be that the form has text fields and
checkboxes and will only output the text fields that have data entered
along with the checkboxes that the user has selected.

Thank You
 
D

David Dorward

JMS1987 said:
Can JavaScript be used to write the output from an HTML form to a text
file?

No, least ways not by itself. You could interact with something like a Java
Applet or ActiveX control, but these would have to be signed, the user
would have to accept various security warnings, and they would need to be
running the Java Plugin or MSIE/Win32 respectively.
 
K

kaeli

jms9966 said:
Can JavaScript be used to write the output from an HTML form to a text
file? The scenario would be that the form has text fields and
checkboxes and will only output the text fields that have data entered
along with the checkboxes that the user has selected.

Thank You

Write a file on the client?
Only if you're using an HTA.
Otherwise, see David's response about signed applets, ActiveX, etc.

Javascript alone cannot write a file on the server, as it runs on the client.
(Assuming you're not talking about ASP JScript.)

--
 
T

Thomas 'PointedEars' Lahn

kaeli said:
Javascript alone cannot write a file on the server, as it
runs on the client.

Wrong. JavaScript is but a programming/scripting language. It
is source code compiled to bytecode, interpreted by a Virtual
Machine that may run in any host environment. If that host
environment provides suitable objects, anything can be done
with JavaScript (or other ECMAScript implementations) as with
any other programming language.
(Assuming you're not talking about ASP JScript.)

There are more server-side ECMAScript implementations than just
Micro$oft JScript in ASP applications. For example, there is
the Netscape Enterprise Server to support server-side JavaScript.

<http://developer.netscape.com/docs/manuals/js/server/jsguide/>


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top