getElementById and document.embeds. I believe this is more than just a 
Javascript spelling error. The reason we have the different setup is we do 
not want to embed all of gecko / mozilla, we only want to be able to host a 
XPCOM Plugin in our standalone app.

The part that's confusing me is the dom seems to be created (javascript 
document holds a valid object) it just seems that quering for the element 
fails.

--Richard
"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Richard wrote:
>> This app basically works aside from one issue, Javascript. I want access 
>> to
>> be able to call document.getElementByID("plugin")
>
> getElementByID, or getElementById?
>
>> document object itself seems to exist, just not the document.embed array.
>
> document.embed, or document.embeds?
>
>> 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).
>
> Erm....  You're using some interesting private "interfaces" there.  Given 
> that, I have no idea what you're doing and why, and hence why it might not 
> work.  Is there a reason you're doing all that?
>
>> 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.
>
> There isn't one; the DOM is "initialized" when the document is created.
>
> -Boris 


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to