ActiveX won't run from server
Posted
by
user1709555
on Stack Overflow
See other posts from Stack Overflow
or by user1709555
Published on 2012-09-30T09:34:10Z
Indexed on
2012/09/30
9:37 UTC
Read the original article
Hit count: 247
JavaScript
|activex
I have a MFC activeX that runs fine from disk but when I put it on a server I get errors. Client: WIN7 machine Server: Ubunto running apache
The HTML and the errors are below, please advice. 10xs, Nahum
HTML:
<html>
<HEAD>
<TITLE>myFirstOCX.CAB</TITLE>
<script type="text/javascript" FOR="window">
function fn()
{
try{
document.all('Ctrl1').AboutBox();//error: Undifiend : object doesn't have
AboutBox() method
//OR
var obj = new ActiveXObject ("activex.activexCtrl");
obj.AboutBox ();//error: Undifiend : Automation server can't create object
}
catch (ex) { alert("Error: " + ex.Description + " : " + ex.message); }
}
</script>
</HEAD>
<body bgcolor=lightblue >
<TABLE BORDER>
<TR>
<TD><OBJECT
CLASSID="CLSID:E228C560-FA68-48E6-850F-B1167515C920"
CODEBASE=".\nsip.CAB#version=1,0,0,1"
ID="Ctrl1"
name="Ctrl1">
</OBJECT>
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
<INPUT TYPE=BUTTON VALUE="Click Me" onclick="fn()" >
</TD> </TR> </TABLE>
<INPUT TYPE=TEXT ID="ConnectionString" VALUE="" >
</body>
</html>
© Stack Overflow or respective owner