Arbortext IsoView > Programmer's Reference > Introduction > Inserting the ActiveX Control Dynamically
  
Inserting the ActiveX Control Dynamically
If an ActiveX Control is embedded into an HTML page utilizing the <applet> tag, <embed> tag, or <object> tag, it will require an additional activation click. This means that the graphic will be displayed, but stay inactive until the user has clicked on it.
In order to avoid this additional activation click, insert the ActiveX control dynamically as follows:
<html>
<head>
<script language="JavaScript">
<!--
function Init()
{
gIv = document.ivx1;
gIv.Iso3OpenFile(
'six_cubes.iso#name(isovp_home,
view_context)' );
}
//-->
</script>
</head>
<body onLoad="Init()"
<p align="center">
<script src="embed.js"></script>
<br>
</p>
</body>
</html>
This technique requires an additional external file, embed.js containing the following code:
document.write('<object id="ivx1"
document.write('type="application/x-isoview"‘
document.write('width="400" height="300">');
document.write('<param name="border" value="1">');
document.write('</object>');