Changes between Initial Version and Version 1 of Ticket #8118
- Timestamp:
- Feb 1, 2011, 7:00:52 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8118
-
Property
Priority
changed from
undecided
tolow
-
Property
Component
changed from
unfiled
toajax
-
Property
Priority
changed from
-
Ticket #8118 – Description
initial v1 1 used jquery.autocomplete which added $.ajax{dataType:"json"} which results in query adds jsonp callback and further the callback will cause a parse error, when removing the dataType spec. will cause correct behavior. In my scenario the response data structure is => [{"someproperty":"somevalue"}, {"someproperty":"somevalue"}]1 used jquery.autocomplete which added `$.ajax{dataType:"json"}` which results in query adds jsonp callback and further the callback will cause a parse error, when removing the `dataType` spec. will cause correct behavior. In my scenario the response data structure is => `[{"someproperty":"somevalue"}, {"someproperty":"somevalue"}]` 2 2 3 3 Did a quick search for json in jquery-1.5.js and found this on row 6905: 4 4 {{{ 5 5 // Detect, normalize options and install callbacks for jsonp requests 6 6 jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, dataIsString /* internal */ ) { 7 8 removing the "json" from first argument will add correct behavior when spec. dataType:"json"7 }}} 8 removing the "json" from first argument will add correct behavior when spec. `dataType:"json"`