Skip to main content

Bug Tracker

Side navigation

#2051 closed bug (fixed)

Opened December 14, 2007 06:25AM UTC

Closed August 08, 2008 03:53AM UTC

JSONP is always assumed

Reported by: john Owned by:
Priority: major Milestone: 1.2.3
Component: ajax Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:
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 (0)
Change History (4)

Changed February 04, 2008 11:30AM UTC by m0n5t3r comment:1

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 February 05, 2008 12:24AM UTC by davidserduke comment:2

milestone: 1.2.21.2.3

Changed February 06, 2008 02:14PM UTC by m0n5t3r comment:3

tested, getJSON seems to work as advertised now :)

Changed August 08, 2008 03:53AM UTC by flesler comment:4

resolution: → fixed
status: newclosed