I have an ActiveX control generated by the FireBreath framework (http://firebreath.org). I need to get a reference to the <object> tag in the page that hosts the plugin from C++.
If I were using NPAPI, I would use the NPNVPluginElementNPObject constant with NPN_GetValue.
so to make sure I am being clear, say I have the following in the page:
<object id="testPlugin" type="application/x-someplugin" width="100%" height="100%"></object>
I want to get a reference to the plugin like I would if I used document.getElementById("testPlugin"), except from within the C++ code of the activex control that is inserted for that mimetype.
Please note that passing the id in as a <param> is not a good option for me, but if there is a way to get the ID from inside the activex control that may work.
edit: I am considering using getElementsByTagName and trying to find it through the DOM, but it would be difficult to tell the difference between two instances of the same plugin.