W3C home > Mailing lists > Public > public-webapi@w3.org > May 2008

quick question on xhr2 upload events

From: Aaron Boodman <aa@google.com>
Date: Tue, 20 May 2008 18:50:12 -0700
Message-ID: <278fd46c0805201850q19076dffq81be8e67b6c0a5c7@mail.gmail.com>
To: "Web API WG (public)" <public-webapi@w3.org>

My reading of http://www.w3.org/TR/XMLHttpRequest2/#tracking leads me
to believe that you can do this:

xhr.upload.addEventListener("progress", function(){}, false);

but not this:

xhr.upload.onprogress = function(){};

That is, XMLHttpRequestUpload implements EventTarget, but not any
old-style event handler function properties. Is that correct?

- a
Received on Wednesday, 21 May 2008 01:50:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:27 UTC