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 comment:1
milestone: | 1.4.3 |
---|---|
owner: | → Marc Grabanski |
priority: | → undecided |
status: | new → pending |
Changed November 22, 2010 12:56AM UTC by comment:2
_comment0: | I guess this is actually an enhancement request. \ \ [http://jsfiddle.net/jitter/QScpf/ test case] → 1290387528731135 |
---|---|
owner: | Marc Grabanski |
priority: | undecided → low |
status: | pending → new |
type: | bug → feature |
version: | 1.4.2 → 1.4.4 |
I guess this is actually a feature request.
Changed November 22, 2010 02:28AM UTC by comment:3
blocking: | → 7195 |
---|---|
status: | new → open |
type: | feature → enhancement |
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 comment:4
keywords: | → ajaxrewrite |
---|
Changed January 15, 2011 11:56PM UTC by comment:5
resolution: | → fixed |
---|---|
status: | open → closed |
As of 1.5, the dataType of the response is given to dataFilter.
Please provide a reduced jsFiddle test case, Thanks!