Skip to main content

Bug Tracker

Side navigation

#6101 closed bug (invalid)

Opened February 16, 2010 06:14AM UTC

Closed February 16, 2010 09:04PM UTC

$.ajax() ignores "data" content for JSONP-GET requests

Reported by: tutils Owned by:
Priority: Milestone: 1.4.2
Component: ajax Version: 1.4.1
Keywords: ajax jsonp Cc:
Blocked by: Blocking:

$.ajax() doesn't place the variables in the "data" parameter into the URL, even though the documentation says about the "data" parameter: "It's appended to the url for GET-requests".

Test case:

Attachments (0)
Change History (2)

Changed February 16, 2010 07:35AM UTC by tutils comment:1

It seems I jumped the gun. After inspecting the test case with Firebug, I see that the "data" variables do get added to the URL, however they are added *after* the callback function, which breaks the test case (in this case, Google).

Without "data" (works):

With "data" (breaks):

How do you suggest to proceed?

Changed February 16, 2010 09:04PM UTC by john comment:2

resolution: → invalid
status: newclosed

Perhaps Google should be contacted to let them know that their URL parameter parsing is broken?

I'm always surprised at how many broken JSONP implementations there are.