do a check on a known method on the ActiveX control, if you got an error, then you know the control is not loaded properly, for example
<script language="javascript">
var bControlLoaded=false;
function window.onload()
{
try
{
if (objectID.someMethod)
bControlLoaded = true;
}
catch (ex){}
alert(bControlLoaded);
}
</script>
<object id="objectID"></object>
then in other places, before you make a method call, check if bControlLoaded is true. Or if the ActiveX control is a must for the page to proceed, redirect the user to some other page if the control is not loaded properly:
<script language="javascript">
function window.onload()
{
try
{
if (objectID.someMethod)
bControlLoaded = true;
}
catch (ex){
alert("you did not install the control properly!");
window.location.href="someotherpage.html";
}
}
</script>