Form Output to a Text File

Discussion in 'Javascript' started by JMS1987, Aug 4, 2004.

  1. JMS1987

    JMS1987 Guest

    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
     
    JMS1987, Aug 4, 2004
    #1
    1. Advertising

  2. JMS1987 wrote:

    > 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.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
     
    David Dorward, Aug 4, 2004
    #2
    1. Advertising

  3. JMS1987

    kaeli Guest

    In article <>, jms9966
    @comcast.net enlightened us with...
    > 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.)

    --
    --
    ~kaeli~
    Press any key...NO, NO, NO, NOT THAT ONE!!!!!!
    http://www.ipwebdesign.net/wildAtHeart
    http://www.ipwebdesign.net/kaelisSpace
     
    kaeli, Aug 4, 2004
    #3
  4. kaeli wrote:

    > 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
     
    Thomas 'PointedEars' Lahn, Aug 8, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John M. Lembo

    Parse Text File and Output to File

    John M. Lembo, Aug 1, 2003, in forum: Perl
    Replies:
    0
    Views:
    12,757
    John M. Lembo
    Aug 1, 2003
  2. nate

    form output to text file

    nate, Nov 10, 2004, in forum: HTML
    Replies:
    3
    Views:
    1,052
    Mark Parnell
    Nov 11, 2004
  3. chuck amadi
    Replies:
    1
    Views:
    509
    Larry Bates
    Jun 23, 2004
  4. John M. Lembo

    Parse Text File and Output to File

    John M. Lembo, Aug 1, 2003, in forum: Perl Misc
    Replies:
    2
    Views:
    177
    JS Bangs
    Aug 1, 2003
  5. John
    Replies:
    6
    Views:
    153
    John W. Kennedy
    Mar 11, 2006
Loading...

Share This Page