Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#8327 closed bug (wontfix)

jXHR.responseText is not available before complete()

Reported by: [email protected] Owned by:
Priority: low Milestone: 1.next
Component: ajax Version: 1.5
Keywords: Cc: jaubourg
Blocked by: Blocking:


Until 1.5.0 it was possible to access the native XHR object's responseText / responseXML property while the response was being loaded. Now this is not possible because these properties aren't set on the jXHR object before the request was completed.

I have looked at $.ajaxTransport() but I don't believe it can be used as a workaround.

Lame jsfiddle example showing how it powered a "show content as it's available from slow webservice" feature on my website: http://jsfiddle.net/5DT6B/

Change History (4)

comment:1 Changed 12 years ago by jitter

Cc: jaubourg added
Component: unfiledajax
Priority: undecidedlow

comment:2 Changed 12 years ago by jaubourg

Resolution: wontfix
Status: newclosed


This kind of low-level activity can only be done on the native xhr (the architecture to handle that on the jqXHR object is definitely overkill). The prefilter in the jsfiddle above solves the problem.

As a side-note, showing content as it comes may seem nice but I wouldn't be surprised if it was actually broken in some browsers.

comment:3 Changed 12 years ago by [email protected]

Would you consider returning the native xhr on a method call or anything else that makes a workaround possible?

As it stands now, if I don't want to lose this nice feature for a growing % of users, I have to stick to jquery 1.4.4 or switch to using non-library js code for AJAX work.

comment:4 Changed 12 years ago by [email protected]

Sorry, I didn't see the prefilter workaround, I will try it.

In this case, the won't fix status is acceptable.

Note: See TracTickets for help on using tickets.