Form Output to a Text File

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JMS1987

    Form Output to a Text File

    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
  • David Dorward

    #2
    Re: Form Output to a Text File

    JMS1987 wrote:
    [color=blue]
    > Can JavaScript be used to write the output from an HTML form to a text
    > file?[/color]

    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

    Comment

    • kaeli

      #3
      Re: Form Output to a Text File

      In article <d696901f.04080 31623.194d52df@ posting.google. com>, jms9966
      @comcast.net enlightened us with...[color=blue]
      > 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
      >[/color]

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



      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Form Output to a Text File

        kaeli wrote:
        [color=blue]
        > Javascript alone cannot write a file on the server, as it
        > runs on the client.[/color]

        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.
        [color=blue]
        > (Assuming you're not talking about ASP JScript.)[/color]

        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.netsc ape.com/docs/manuals/js/server/jsguide/>


        PointedEars

        Comment

        Working...