I have a web page where you can open a Imanage document using a Active X control. The code works fine the first time I click the button (that launches the js code), but any time after that I get a undefined error description.
The openImanageDoc is the method that opens the document. I have other applications that is using the control without the error.
<object id="Control" classid="clsid:*GUID*" codebase="*CONTROL*.cab"></object>
function getDocument() {
try {
var docNum = document.getElementById("docNum").value;
var versionNum = document.getElementById("versionNum").value;
var database = document.getElementById("database").value;
var obj = document.Control;
if (obj) {
obj.openImanageDoc(docNum, versionNum, *SERVERNAME*, database, false);
} else {
alert("Object is not created!");
}
} catch (ex) {
alert("Some error happens, error message is: " + ex.Description);
}
}
I tried running the code in Chrome as well, the error that returns is:
obj.openImanageDoc is not a function
Many Thanks