Hello.
I have a small XUL document which look like this:
<window>
<button id="MyButton"></button>
<browser id="MyBrowser"></browser>
</window>

In my C++ code i try get access to the interface
nsIWebNavigation for the element "MyBrowser".
I already have the reference to parent browser wich containes this XUL.
My C++ function look like this:

nsresult GetWebBrowser(parent *nsIDOMDocument, RetVal **nsIWebNavigation)
{
  nsIDOMElement *element = nsIDOMDocument->getElementById("MyBrowser");
  element->QueryInterface(nsIWebNavigation_IID, RetVal);
  element->_Release();
}

But QueryInterface always return NO_INTERFACE :(


Does anyone know how to get reference to nsIWebNavigation from
nsIDOMElement(nsIDOMXULElement)
for XUL node <browser id="MyBrowser"></browser> using C++?

Regards, Dmitriy


_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to