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: |
Description
$.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 comment:1
Changed February 16, 2010 09:04PM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
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.
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):
http://maps.google.com/maps/geo?sensor=false&q=USA&callback=jsonp1266305317582
With "data" (breaks):
http://maps.google.com/maps/geo?callback=jsonp1266305317583&q=USA&sensor=false
How do you suggest to proceed?