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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    write to text file w/o using IE

    Is there any possibility to write a text file using Chrome/FF? On the other words, writing a text file w/o using ActiveX. Thank you.

  • #2
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is basically the code that works if I'm using IE.

    Code:
    		var fso1 = new ActiveXObject("Scripting.FileSystemObject");
    		var tf1 = fso1.CreateTextFile("c:\\PassFail.csv", true);

  • #3
    New Coder
    Join Date
    Aug 2010
    Location
    FL
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post
    Code:
    ActiveXObject
    This code relies on Internet Explorer. Writing text files to client machines via javascript is really a security breach and is not acceptable. If developers could write code to save files onto your computer, we would be in serious trouble. The most you can write is a cookie

  • #4
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I heard there is something called XMLHttpRequest that is compatible to all browsers. What does that actually do? Is there something to do with Javascript? Thank you.


  •  

    Posting Permissions

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