On Fri, 05 Sep 2008 02:36:58 +0200, Jonas Sicking <[EMAIL PROTECTED]> wrote:
1. A timeout property like the one on microsofts XDR. I haven't looked
into the specifics of XDRs property, but I would think that an
'abort' event should fire as well as readystate transitioning to
something if the timeout is reached.
What's wrong with using setTimeout?
2. A .responseJSON property. This would return the same thing as the
following code:
if (xhr.readyState != 4) {
return null;
}
return JSON.parse(xhr.responseText);
However there are a few details that can be quibbled about:
a) Should a partial result be returned during readystate 3
b) If the property is gotten multiple times, should that return the
same or a new object every time.
What's wrong with using JSON.parse?
(I'm not necessarily opposed, but I'd like to only add features that are
necessary.)
--
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>