So I’ve been trying to get a simple function in the TestAPI.htm to work just to test out the TEM Platform API. I’m simply just trying to stop an open action with the actionstopper methods. I modified a button in TestAPI.htm to execute the following code:
function StopAction()
{
// Create the BESAPI.ActionStopper object.
var actionStopper = new ActiveXObject(“BESAPI.ActionStopper”);
alert(“made it”);//to make sure it reaches the end of the function
}
However, when I open TestAPI.htm in internet explorer and hit the button all I get is my alert saying “made it”. I check the console’s action that I wanted to stop, and the action is still open.
Problem fixed! It was not this code after all. The registry key paths for the signing keys was incorrect. I’m sorry that I overlooked the registry keys and instantly blamed the code. Thanks again Ben and Lee for your input on this thread.
What happens when I run the function is the alert with the diagnostic message is empty, which should mean that the Load command worked, but I never get the “3” alert, so something is going wrong with the fm.Name() line. The try-catch block picks up the error and alerts me that an:
object error
has occurred. I was wondering if anyone can shed any light on this.