If you're programming C++ you can do this:
  1. QueryInterface the control for the IMozControlBridge interface.
  2. Call GetWebBrowser() on this interface to get an nsIWebBrowser interface
  3. Call GetContentDOMWindow() on this to get an nsIDOMWindow for the topmost DOM window
  4. Call GetDocument() on this to get an nsIDOMDocument
Once you're at this stage you can manipulate the raw DOM any way you please.

If you're using VB you are stuck, but there are some open bugs to cover this issue.

http://bugzilla.mozilla.org/show_bug.cgi?id=61780
http://bugzilla.mozilla.org/show_bug.cgi?id=58475

Andrew Mason wrote:

Is there any way to get the raw HTML at all at the moment, or more
specifically hidden form variables?

Could I try the patches?

Thanks for getting to back to me...

"Adam Lock" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Andrew Mason wrote:
>
> > I'm trying to get the raw HTML from a loaded web page.
> > With an IE control it works fine, but with the MOZCTL.DLL I get:
> > Run-time error -2147319779 (8002801d)
> > Automation Error
> > Library not registered.
>
> The Mozilla control only implements a subset of the IE DOM. The innerHTML
> attribute is unimplemented at the moment. I have some patches to improve
the DOM
> support but I don't know when they will be integrated.
>
>
>
>

Reply via email to