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?

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? Is so, could you tell me how to get or
create references to those interfaces?

Thank you so much, Boris :)


"Boris Zbarsky" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
> > But will "using saveURI" get the HTML text from server again or using
the
> > loaded copy, since the webpage is already loaded?
>
> Depends on the cache flags you set on the persistence object.
>
> 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

Reply via email to