Christian Biesinger wrote:
That won't work, apparently - XMLHTTPRequest overwrites the notification callbacks you set. It looks like it forwards the progress notifications somewhere though - try setting an "onprogress" listener on the xmlhttprequest.

Hi Christian thanks for this,

"onprogress"? I didn't know there was such a DOM event? Do you know what the DOMString is? I have got it to work with "load" but it doesn't like "progress":

var listener = {
 handleEvent: function( event ) {
  dump( "\n" +event.target );
 }
}

httpRequest.addEventListener("load", listener, true);

This works as expected.


You could of course use Necko directly.
I take it you mean implement my own channel/protocol handlers? That sounds like quite a bit of work, so if this works I'll go with that

Do you know why XMLHTTPRequest overwrites the notification callbacks? I looked in http://lxr.mozilla.org/mozilla/source/extensions/xmlextras/base/src/nsXMLHttpRequest.cpp and couldn't see anything obvious.


Cheers,

Neil
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to