> So you mean if set the PERSIST_FLAGS_FROM_CACHE to the > nsIWebBrowserPersist::persistFlags before calling saveURI, the HTML text > will comes from cache; otherwise, if choosing PERSIST_FLAGS_BYPASS_CACHE, > the HTML comes from the server again. Is it right?
More or less, yes. If you set neither, it will try cache first and then if that fails go to the server. > And if I overlay a toolbar into mozilla tool bar, and provide a button, > calling saveAs. After a page is loaded, I press the button on my toolbar. Is > it possible to get the DOM window, DOM object corresponding to the loaded > page and save it to local disk? Yes. This is what the "save as" item in the File menu does. > Is so, could you tell me how to get or create references to those interfaces? Look up the callers of saveDocument and saveURL (the functions defined in contentAreaUtils). Boris -- Washington [D.C.] is a city of Southern efficiency and Northern charm. -- John F. Kennedy _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib