G
Guest
Hi,
Previously I was loading my .NET Usercontrol like this :
<OBJECT id="Obj" classid="Viewer.dll#Viewer.Viewer" width=105 height=20
VIEWASTEXT><param name="DONOTHING" value="1">
</OBJECT>
Everything was working great until the new patch came out and changed the
way the ActiveX / Usercontrols are loaded.
I tried using the 'inner html' example located at :
http://msdn.microsoft.com/library/d.../author/dhtml/overview/activating_activex.asp
But the example did not work for my user control. How can I load my
usercontrol and my parameter in a way that is functional with this latest ie
update? Do I need to now specify a codebase ?
Here is what I tried :
<script language="JScript">
CreateControl( "EXAMPLE_DIV_ID",
"Viewer.dll#Viewer.Viewer",
"EXAMPLE_OBJECT_ID", "600", "400", "1",)
</script>
Supporting function :
// external_script.js
function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL, AUTOSTART)
{
var d = document.getElementById(DivID);
d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + ' width=' +
WIDTH + ' height=' + HEIGHT +'><param name="URL" value=' + URL + '><param
name="autoStart" value=' + AUTOSTART + '/>';
}
I get a nice big red X.....
Previously I was loading my .NET Usercontrol like this :
<OBJECT id="Obj" classid="Viewer.dll#Viewer.Viewer" width=105 height=20
VIEWASTEXT><param name="DONOTHING" value="1">
</OBJECT>
Everything was working great until the new patch came out and changed the
way the ActiveX / Usercontrols are loaded.
I tried using the 'inner html' example located at :
http://msdn.microsoft.com/library/d.../author/dhtml/overview/activating_activex.asp
But the example did not work for my user control. How can I load my
usercontrol and my parameter in a way that is functional with this latest ie
update? Do I need to now specify a codebase ?
Here is what I tried :
<script language="JScript">
CreateControl( "EXAMPLE_DIV_ID",
"Viewer.dll#Viewer.Viewer",
"EXAMPLE_OBJECT_ID", "600", "400", "1",)
</script>
Supporting function :
// external_script.js
function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL, AUTOSTART)
{
var d = document.getElementById(DivID);
d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + ' width=' +
WIDTH + ' height=' + HEIGHT +'><param name="URL" value=' + URL + '><param
name="autoStart" value=' + AUTOSTART + '/>';
}
I get a nice big red X.....