Kyle wrote:
I can't access the page source directly, without displaying it. Any ideas on how I might do this?
You can (sorta) get the SHEntry corresponding to the page and get the cachekey off of that, then open a necko channel to read the data...
There may be better ways; setting followup to the right place.
-Boris _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib
Kyle,
I took a look at the original message posted to n.p.m.dom, and this comment caught my attention:
Specifically, I want the contents of the cached page as they are displayed in the above example, but I need to parse and manipulate them before I display anything in the browser.
It looks like you are trying to not only read the page source, but you want to directly manipulate what the browser has cached? is that right?
If so, that is going to be a bit challenging. First of all, just because you have a "page descriptor" or "cache key", it does not guarantee that the page will be fetched from the cache. In fact, the page may not necessarily exist in the cache.
There are potentially better places to hook into Gecko if you are wanting to manipulate the content it loads. Can you provide a bit more information about what you are tying to accomplish?
Thanks, Darin
_______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib
