I am trying to add an ActiveX element dynamically to a page using jQuery. The application is successful; however, control is not initialized when this is done in this way. I believe IE calls the OnCreate method of the ActiveX control when the page containing the control has completed rendering. The problem is that the tag is missing from the page until the rendering is complete, so OnCreate is never called.
I am not sure if this problem is just a hunch. Does anyone have any experience? Is it possible to get IE to call OnCreate at a specific time?
The control works fine if the tag is in html. The only time I see problems is when I add an object to the page through javascript.
Update: I need to know what IE does when it encounters
<object>
on the page during rendering. In this context, management works fine, so IE was causing something at that time. I need to call this manually after I add the control to the post render page.
Thanks Pete
source
share