private string JSActivate(string[] args)
{
if (active) {
System.Diagnostics.Trace.WriteLine ("HELP! XUL reports having been initialised again! Suppressing, but need to be fixed.");
return string.Empty;
}
System.Diagnostics.Trace.WriteLine ("XUL loaded.");
//load document with filled-in design-time HTML
string doc = host.RootDocument.GetLoadedDocument ();
comm.JSCall (GeckoFunctions.LoadPage, null, doc);
active = true;
return string.Empty;
}