G
Guest
I work on a website that includes several activeX controls. After the April
update that made IE comply with Eolas we changed the code that includes the
controls. Rather than embedding the <object> tags in the pages we insert
them using JScript in an included .js file.
The embedded code looks like this:
<div id="DivDateTime"></div>
<script language="JScript">
CreateControl( 'DivDateTime','<OBJECT id="DTP"
codeBase="../Packages/DateTime.CAB#version=123" classid="CLSID:xxxx"
VIEWASTEXT><PARAM NAME="foo" VALUE="bar><SPAN STYLE="COLOR:red">ActiveX
control [DateTime] failed to load </SPAN></OBJECT>');
</script>
and the included js file just contains one function:
function CreateControl(ElementId, innerHTML)
{
var d = document.getElementById(ElementId);
d.innerHTML = innerHTML;
}
This solution works 99% of the time, but intermittently we still get the
tooltip saying "click to activate etc." As far as I can tell we have
followed MS advice on resolving the issue but sometimes even that does not
work - any ideas why this may be?
update that made IE comply with Eolas we changed the code that includes the
controls. Rather than embedding the <object> tags in the pages we insert
them using JScript in an included .js file.
The embedded code looks like this:
<div id="DivDateTime"></div>
<script language="JScript">
CreateControl( 'DivDateTime','<OBJECT id="DTP"
codeBase="../Packages/DateTime.CAB#version=123" classid="CLSID:xxxx"
VIEWASTEXT><PARAM NAME="foo" VALUE="bar><SPAN STYLE="COLOR:red">ActiveX
control [DateTime] failed to load </SPAN></OBJECT>');
</script>
and the included js file just contains one function:
function CreateControl(ElementId, innerHTML)
{
var d = document.getElementById(ElementId);
d.innerHTML = innerHTML;
}
This solution works 99% of the time, but intermittently we still get the
tooltip saying "click to activate etc." As far as I can tell we have
followed MS advice on resolving the issue but sometimes even that does not
work - any ideas why this may be?