#6778 closed enhancement (fixed)
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: | #7195 |
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.
Change History (5)
comment:1 Changed 12 years ago by
Milestone: | 1.4.3 |
---|---|
Owner: | set to Marc Grabanski |
Priority: | → undecided |
Status: | new → pending |
comment:2 Changed 12 years ago by
Owner: | Marc Grabanski deleted |
---|---|
Priority: | undecided → low |
Status: | pending → new |
Type: | bug → feature |
Version: | 1.4.2 → 1.4.4 |
I guess this is actually an enhancement request.
comment:3 Changed 12 years ago by
Blocking: | 7195 added |
---|---|
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.
comment:4 Changed 12 years ago by
Keywords: | ajaxrewrite added |
---|
comment:5 Changed 12 years ago by
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!