ActiveXObject & Wscript Problem

Discussion in 'JavaScript' started by rayzle16, Jan 22, 2008.

  1. #1
    why is it this line of code doesn't work on me? it says "Automation server can't create object."
    var shell = new ActiveXObject("WScript.shell");

    i am very sure that ActiveXObject feature works on my browser.

    function alert_user()
    {
    if (window.ActiveXObject)
    {
    alert("supported");
    }
    else
    {
    alert("does not support");
    }
    }
    and this one works too...
    var ExcelApp = new ActiveXObject("Excel.Application");

    what the hell is wrong with my computer? someone please help.
     
    rayzle16, Jan 22, 2008 IP
  2. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just because you have ActiveX doesn't mean you have the COM (or whatever its called) object.
     
    MMJ, Jan 23, 2008 IP