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]> |
Neil Deakin wrote:
> Michael Vincent van Rantwijk wrote:
>> What properties are there for:
>>
>> xmlRequest = new XMLHttpRequest();
>> xmlRequest.onprogress = onXMLProgress <-
>>
>> onXMLProgress: function(aEvent)
>> {
>> aEvent.target points to the request, but what else can I use?
>> How do I get the progress percentage and total size?
>> }
>
> The progress event is defined in the DOM load/save spec. You can use:
>
> position
> totalSize
>
> / Neil
Thanks, but I tried that already. I used something like:
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]
position : undefined
totalSize: undefined
so now what?
Michael