Ticket #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: | |
| Blocking: | #7195 | Blocked by: |
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
comment:1 Changed 3 years ago by rwaldron
- Owner set to Marc Grabanski
- Priority set to undecided
- Status changed from new to pending
- Milestone 1.4.3 deleted
comment:2 Changed 3 years ago by jitter
- Owner Marc Grabanski deleted
- Priority changed from undecided to low
- Version changed from 1.4.2 to 1.4.4
- Status changed from pending to new
- Type changed from bug to feature
I guess this is actually an enhancement request.
comment:3 Changed 3 years ago by snover
- Status changed from new to open
- Type changed from feature to enhancement
- Blocking 7195 added
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Please provide a reduced jsFiddle test case, Thanks!