CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Posts
    28

    [JS] Write to text file

    Is it possible for me to write my javascript variables to a text file?
    document.write() cannot be written to text file.

  2. #2
    Join Date
    Nov 2005
    Posts
    49

    Re: [JS] Write to text file

    I think it can not be done because java script run on client side. And this will have some security issues.
    Muhammad Waqas Badar

  3. #3
    Join Date
    Jul 2007
    Location
    Sweden
    Posts
    331

    Re: [JS] Write to text file

    JavaScript is contained to the web page it is currently on due to security reasons. Even access to the clipboard is limited in JavaScript. You can save your variables in cookies however, if what you intend to do is to have your script remember user settings (much like the collapsible forums script in the CodeGuru forums list does.)

    Also, you put this in the wrong forum. JavaScript is a client-side language and threads about it should be put in the Client-side scripting forum.

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: [JS] Write to text file

    [ moved ]
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured