On Apr 26, 3:58 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am embedding gecko into some simple app and have following problem: > > I want to load content into gecko from memory buffer instead of file > > or url > > You convert your memory into a URL, either using data: or using a custom > protocol handler you write. > > -Boris
I loaded the document content as shown and this works for me. Following works for me String htmlCont = "<html><head><title>Test</title></head><body bgcolor= \"#ff20ff\"><p>Test test test test test<p></body></html>"; htmlCont="data:text/html," + htmlCont; webNavigation.loadURI(htmlCont, nsIWebNavigation.LOAD_FLAGS_NONE, null, null, null); regards, Krithika _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
