0

I built a gadget that shows an on-call rotation for a team, and I am trying to integrate their communicator presence into that shedule. I am using the GetStatus method from the NameCtrl object to get user presence. It works fine in IE when I run it. The problem I am having is that the gadget has a runtime error whenever it hits the ActiveX object declaration. I know this because I commented it out and it runs fine. Any suggestions?

var communicatorPresence = getCommunicatorPresence(userName);


function getCommunicatorPresence(userName){
 var obj = new ActiveXObject("Name.NameCtrl.1")
 var presence = obj.GetStatus(userName,"")
 return presence;
}

I debugged the gadget in Visual Studio and put a breakpoint there, and the error was "Automation Server can't create object"

4

1 回答 1

0

根据机器 UAC 设置,可能是该小工具没有注册表的读/写访问权限。

于 2011-01-27T22:18:31.093 回答