<object name="Form" id='Form' classid='2F76566A-964F-4547-BD48-EE498AE1A7A2'
codebase='ActiveXControl.cab#version=1,0,0,0'
width="500px" height="500px" style="background-color:Blue">
</object>
<script type="text/javascript" language="javascript">
var x = new ActiveXObject("ActiveXControl.ControlClass");
x.UserTxt = "Aashish";
x.password = "Rockstar";
x.getmethod();
alert(x.Data());
</script>
I have used object tag in Htm file and have provided the classid and codebase to my code. My method Data() is calling successfully but the view of my ActiveX control is not visible. I don't want to use Caspol.exe to fix my query
This code is written in my ActiveX class where it can be clearly seen that constructor is calling the method to Initialize form object.