writting files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fernando Fernández

    writting files

    Hiii people.

    I have a question. Is it possible to write a text file using JavaScript?

    mmm... and it's all, it's a very simple question... and I am afraid of the
    answers :s

    Ok, best regards from Palma de Mallorca
    Fernando


  • Martin Honnen

    #2
    Re: writting files


    Fernando Fernández wrote:
    [color=blue]
    > Is it possible to write a text file using JavaScript?[/color]

    Yes, when there are host objects available or creatable to do so. You
    can certainly do it for instance with JavaScript in WSH or ASP or HTA.
    See
    <http://msdn.microsoft. com/library/default.asp?url =/library/en-us/script56/html/FSOoriFileSyste mObject.asp>
    Inside the browser such host objects for file system access are usually
    not provided or only provided under certain restrictions (e.g. when the
    HTML document with the script is also being loaded from the local file
    system).

    --

    Martin Honnen

    Comment

    • Julian Turner

      #3
      Re: writting files


      Fernando Fernández wrote:
      [color=blue]
      > Hiii people.
      >
      > I have a question. Is it possible to write a text file using JavaScript?
      >
      > mmm... and it's all, it's a very simple question... and I am afraid of the
      > answers :s
      >
      > Ok, best regards from Palma de Mallorca
      > Fernando[/color]


      Mozilla/Firefox uses XPCOM/XPCONNECT technology for file handling. It
      is however a bit more fiddly than the Scripting.FileS ystemObject for
      IE. See:-

      captain.at is your first and best source for information about captain. Here you will also find topics relating to issues of general interest. We hope you find what you are looking for!



      Julian

      Comment

      Working...