Hi,
I'm not sure if this is the right newsgroup for this type of application or
not but here goes.
Basically I'm making a host app to host an instance of a Mozilla plugin.
This app basically works aside from one issue, Javascript. I want access to
be able to call document.getElementByID("plugin") from javascript. but I'm
unsure of why it's not working.(It always seems to return undefined). The
document object itself seems to exist, just not the document.embed array. Is
there a function on nsIPlugin__ that I need to call to add the embed
information to the document?
I'm using nsIScriptGlobalObject,nsIDocShell, and nsIPluginInstance just to
name a few interfaces I'm using to set everything up.
(The plugin is loaded using a combination of nsIPluginHost and
nsIPluginDocument).
Sorry I'm kind of vauge, but I'm not sure what is the relative point in the
code to initialize this aspect of the DOM.
Thanks,
--Richard
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding