Now I'm wanting to defer the creation of the object until some time AFTER the page loads. So I'm putting a place for it in the <body> using a <div id="myOCX"></div> placeholder.
I created a Javascript function that can create the ActiveX control, and it actually works. I can see that I get some logging information in some files. The problem is that the ActiveX control isn't visible. I don't see it. Normally the HTML file had something like this:
Expand|Select|Wrap|Line Numbers
- <OBJECT
- classid="clsid:xxxxxxxx-9473-40C2-951E-84B24727AD65"
- width="100%"
- height="100%"
- align="center"
- hspace="0"
- vspace="0"
- >
So if I have a Javascript function like this:
Expand|Select|Wrap|Line Numbers
- function makeOCX() {
- var newOCX = new ActiveXObject("gwdOCX.TheOCX"); // note - this works
- }