Skip to main content

Bug Tracker

Side navigation

#8327 closed bug (wontfix)

Opened February 19, 2011 08:02PM UTC

Closed February 21, 2011 03:48PM UTC

Last modified March 14, 2012 07:38PM UTC

jXHR.responseText is not available before complete()

Reported by: Owned by:
Priority: low Milestone:
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:

Attachments (0)
Change History (4)

Changed February 20, 2011 01:36PM UTC by jitter comment:1

cc: → jaubourg
component: unfiledajax
priority: undecidedlow

Changed February 21, 2011 03:48PM UTC by jaubourg comment:2

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.

Changed February 21, 2011 03:52PM UTC by comment:3

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.

Changed February 21, 2011 03:59PM UTC by comment:4

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

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