Bug Tracker

Changes between Initial Version and Version 1 of Ticket #8118


Ignore:
Timestamp:
Feb 1, 2011, 7:00:52 AM (12 years ago)
Author:
jitter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8118

    • Property Priority changed from undecided to low
    • Property Component changed from unfiled to ajax
  • 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"}]
     1used 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"}]`
    22
    33Did a quick search for json in jquery-1.5.js and found this on row 6905:
    4 
     4{{{
    55// Detect, normalize options and install callbacks for jsonp requests
    66jQuery.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}}}
     8removing the "json" from first argument will add correct behavior when spec. `dataType:"json"`