I'm trying your suggestion using the m.08 milestone.  I can get the DOM
window just fine, but I'm having trouble just trying to declare the
nsIDOMDocument smart pointer.  The second line in the code below gives me a
compiler message that says:
use of undefined type 'nsIDOMDocument'
Any ideas?  I've tried including everything under the sun, but I always get
back to some mozilla code with an enum that mentions something about Windows
breaking Solaris builds by forward referencing.  Why does nsIDOMWindow work
and not nsIDOMDocument?

--- code ---
nsCOMPtr<nsIDOMWindow> pDomWnd;    // works here
nsCOMPtr<nsIDOMDocument> pDomDocument; // error here
pWebBrowser->GetContentDOMWindow(getter_AddRefs(pDomWnd));    // works just
fine here
--- end code ---


"Conrad Carlen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Instead of going that low-level, try this:
> Given an nsIWebBrowser, use GetContentDOMWindow to get an nsIDOMWindow.
>  From that, use GetDocument to get an nsIDOMDocument.
>
> -Conrad
>
> Mark Schmidt wrote:
>
> > Hey all,
> >
> > Is it possible to get the JSRuntime pointer while embedding?
> >
> > In a nut shell, I want to add some elements to the DOM but I want to add
it
> > to the current JSRuntime (or JSContext*??) of the embedded mozilla
instance.
> >
> > Sorry if I'm mangling up the terminology.  Is there a better way?  Am I
> > saying it correctly?
> >
> > Thanks,
> > Mark
> >
> >
> >
> >
>
>



Reply via email to