Skip to main content

Bug Tracker

Side navigation

#6778 closed enhancement (fixed)

Opened July 09, 2010 12:51AM UTC

Closed January 15, 2011 11:56PM UTC

Last modified March 13, 2012 11:06PM UTC

dataType not autoMatically set in dataFilter

Reported by: Marc Grabanski Owned by:
Priority: low Milestone:
Component: ajax Version: 1.4.4
Keywords: ajaxrewrite Cc:
Blocked by: Blocking:
Description

The second parameter in $.ajax dataFilter method is the dataType. jQuery 1.4 automatically sets the dataType based on the MIME type of the response. The dataType should also be automatically set as the second parameter of the dataFilter method.

Currently, the second parameter of the dataFiler method is empty even if the mime type is set by the server.

Attachments (0)
Change History (5)

Changed October 29, 2010 02:51AM UTC by rwaldron comment:1

milestone: 1.4.3
owner: → Marc Grabanski
priority: → undecided
status: newpending

Please provide a reduced jsFiddle test case, Thanks!

Changed November 22, 2010 12:56AM UTC by jitter comment:2

_comment0: I guess this is actually an enhancement request. \ \ [http://jsfiddle.net/jitter/QScpf/ test case]1290387528731135
owner: Marc Grabanski
priority: undecidedlow
status: pendingnew
type: bugfeature
version: 1.4.21.4.4

I guess this is actually a feature request.

test case

Changed November 22, 2010 02:28AM UTC by snover comment:3

blocking: → 7195
status: newopen
type: featureenhancement

Currently, we don’t even try to divine the type of the returned data (except for XML) until after dataFilter has already happened.

This can probably happen along with the AJAX rewrite.

Changed December 27, 2010 10:37PM UTC by rwaldron comment:4

keywords: → ajaxrewrite

Changed January 15, 2011 11:56PM UTC by jaubourg comment:5

resolution: → fixed
status: openclosed

As of 1.5, the dataType of the response is given to dataFilter.