Thanks for the suggestion, Christian. I'm using the loadStream method of nsIDocShell. But I noticed something peculiar that I can't seem to figure out. For some reason if I have external javascript and css files that need to be linked in, it doesn't seem to work.
HTML content containing <link rel="stylesheet" href="file:///path/to/my/stylesheet" type="text/css"> doesn't work when using loadStream. Any suggestions? -Shane On Mon, 28 Feb 2005 22:33:31 +0100, Christian Biesinger <[EMAIL PROTECTED]> wrote: >On Mon, Feb 28, 2005 at 06:09:15PM +0000, Shane Kirk wrote: >> Occasionally, it'll need to feed the browser HTML directly >> instead of having it pull the content from the network. > >Depends on your version of Mozilla. In current (1.8aX) releases, you can >use >http://lxr.mozilla.org/seamonkey/source/embedding/browser/webBrowser/nsIWebBrowserStream.idl >(QueryInterface the nsIWebBrowser). > >In all versions you can use nsIDocShell.loadStream, but that is not >frozen and does change... _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
