ActiveXObject + server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jazu100
    New Member
    • Sep 2008
    • 2

    #1

    ActiveXObject + server

    Hi!
    I have following simple code:
    Code:
    <script language="JavaScript">
    var obj = new ActiveXObject("Scripting.FileSystemObject");
    var file = obj.CreateTextFile("File.txt");
    file.writeline("Hello!");
    file.close();
    obj.quit;
    </script>
    + its html code.

    It's working fine as js -file and in html site (offline).
    But.. when I host it with my created C++ server (which supports
    links, pictures, downloads, etc.), the browser (IE 7) says: "could not create object" or something like that.

    What's the problem?
  • jazu100
    New Member
    • Sep 2008
    • 2

    #2
    Okay... I found the problem.....

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      I assume the problem was that you needed to enable ActiveX. Is that correct?

      Comment

      Working...