Re: Load XML from content

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
Neil Deakin wrote:
> What is the best API to use to start off an asynchronous document load? 
> I have an nsIDocument for the base url, the string url to load, and all 
> I need is a notification with the document when it has done loading.

Hmm... Async load...

Your best bet if you don't want to write new code may be XMLHttpRequest with 
some null jscontext pushing first to prevent its normal security checks and 
stuff, I guess.  Not sure how well that plays on trunk, really...

We should really have a better API for this (maybe nsAsyncLoadService to 
complement nsSyncLoadService?).  If nothing else, XBL could really benefit from 
it, I suspect.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.