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"