Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to save Text Box value to a *.txt file ? - Javascript

    Hello,
    i m new Javascript but knows basics of functions etc.
    ive created a website, which also has field to Submit Email addresses for newsletters..

    Now, i have a TextBox (for users to write email addresses)
    and a Submit button in which i want to call a Javascipt script function which OnClick takes the value(email address) from the textbox and saves it to a .txt file on server.

    i think i am just missing a single line, the function name which will store the value.. i searched ovr the net but didnt find it..

    plz help mee.
    Thankyou!

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,151
    Thanks
    203
    Thanked 2,547 Times in 2,525 Posts
    JavaScript is purely a client-side language, and has no capability to write to a file (except a cookie), communicate with the server, access a database, the client's operating system or the Windows registry, or alter the default behaviour of the browser.

    You can only capture the email addresses using server-side scripting.


    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •