+1 > Hmm. It'd be neat if we could somehow return just jQuery(xhr) but > that's not really possible, not without breaking code, at least.
It might just be possible, if jQuery(xhr) was then extended with the xhr API. I don't know if there is some overlap that would make this impossible, and I'm really not sure it would be a good idea even if it were possible. I'm thinking of something like: return jQuery.extend(jQuery(xhr), { getResponseHeader: function() {return xhr.getResponseHeader();}, statusText : // some initial value that's updated as the underlying xhr object is changed // ... }); This is pretty ugly, as it's essentially writing our own XHR implementation on top of the one in the browser, but it it were workable, it would be both powerful and backward-compatible. Probably I'm just smoking something, though... -- Scott -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=.