Thanks Dave - that let me get a little further, but now I'm still
unable to modify the contents of the <body>.  My code is below (I tried
to keep it real short and show just the essentials).

Any help would be greatly appreciated.
Thanks!
Jeff

// see below for definitions of private properties that are used here
private void SayHello()
{
// I did this for the IE control to force it to load the document
element into the DOM
if (Document == null)
Navigate("about:blank");
while (Body == null)
Application.DoEvents();

// This is what doesn't work with gecko: setting the innerHTML would
cause
// the IE control to render "Hello".
if (entry != null)
Body.innerHTML = "<p>Hello</p>";
}
// Private properties and methods
private IHTMLDocument2 Document
{ get {return (IHTMLDocument2) browser.Document;}}

private IHTMLElement Body
{
get
{
IHTMLDocument2 doc = Document;

if (doc != null)
return (IHTMLElement) doc.body;
return null;
}
}

private void Navigate(object url)
{
object none = System.Reflection.Missing.Value;
browser.Navigate2(ref url, ref none, ref none, ref none, ref none);
}

_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to