Re: xmlRequest.onprogress questions

Michael Vincent van Rantwijk <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Martin Honnen wrote:
> 
> 
> Michael Vincent van Rantwijk wrote:
> 
> 
>> xmlRequest.onprogress = function(aEvent)
>> {
>>   dump("\naEvent   : " + aEvent +
>>        "\nposition : " + aEvent.position +
>>        "\ntotalSize: " + aEvent.totalSize);
>> }
>> xmlRequest.open("GET", url);
>>
>> and the output is this:
>>
>> aEvent   : [object XMLHttpProgressEvent]
> 
> Can't help with your problem but I am wondering since when onprogress 
> works at all, I do not even get it fired with a Firefox 1.5 beta 
> nightly. Is onprogress a new feature on the trunk only?

No problem, and it's not a trunk only (new) think.

BTW: it should get triggered with:

xmlRequest.onprogress = function(aEvent) {}
xmlRequest.open("GET", url) ?

but it will fail when you use:

xmlRequest.open("GET", url) ?
xmlRequest.onprogress = function(aEvent) {}

I only hope this helps,
Michael
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.