1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

JavaScript How to open and save text files using Javascript ?

Discussion in 'Web Development' started by Adamsom, Jan 6, 2010.

  1. Adamsom

    Adamsom New Member

    Hi



    First of all, let me tell you that this is not a homework question, since i am no longer in college, i don't get homework.

    Ok now to the question => Can you please give me a little example java script to open and save text files

    Thank you in advance
    ---------------------------
     
  2. enigma1

    enigma1 New Member

    client-side scripts alone won't give you easy access to the hard-drive. Perhaps from the server end you can emit some headers like content-disposition attachment that will open a save-as dialog, in which case you don't need js.
     
  3. Olaf

    Olaf New Member

    right, there is no method to do that you need some server side language to archive that