Hi Guys,

Christian firstly apologies, I was being a complete plank. When I read further down the http://lxr.mozilla.org/mozilla/source/extensions/xmlextras/base/public/nsIXMLHttpRequest.idl

you're quite right there is an nsIXMLHttpRequest.onprogress() method that returns an nsIXMLHttpProgressEvent thus:

var loadProgress = {
  handleEvent: function( event )        {
    dump( "\n" +event.position +" of " +event.totalSize +" bytes" );
  }
}
httpRequest.onprogress = loadProgress;

Interestingly enough though, it doesn't work... or rather it does but the events fire all in one go after the request is finished! It's almost like the thread the events are on is blocking.


Boris Zbarsky wrote:
I filed bug 292391 on making it do so in a less destructive way.
Neil, could maybe you test the patch I posted and let me know whether it resolves your problem?

Boris sure great I'll download the most recent Firefox nightly and test on that.


Cheers,

Neil


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

Reply via email to