Bug Tracker

Ticket #2051 (closed bug: fixed)

Opened 9 months ago

Last modified 1 month ago

JSONP is always assumed

Reported by: john Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.3 Component: ajax
Version: 1.2.1 Keywords:
Cc: Needs: Review

Description

$.getJSON("http://foobar.com/getdata.cgi?type=stuff",
    function (obj) {
      $("#result").append(obj.toSource());
    }
  );
}

This should check to see if the JSONP style var=? exists somewhere, if not, pass it through to XHR and assume that the user knows what he's doing (since FF3 will have native cross domain handling).

Attachments

Change History

Changed 7 months ago by m0n5t3r

this also leads to another problem in 1.2.2: since a script element being used to load json instead of XHR, the json is evaluated on load and nothing is passed to the callback function, thus making getJSON unusable.

Changed 7 months ago by davidserduke

  • milestone changed from 1.2.2 to 1.2.3

Changed 7 months ago by m0n5t3r

tested, getJSON seems to work as advertised now :)

Changed 1 month ago by flesler

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.