Skip to main content

Bug Tracker

Side navigation

#5803 closed enhancement (fixed)

Opened January 14, 2010 03:25PM UTC

Closed January 09, 2011 08:50PM UTC

Last modified March 14, 2012 12:12AM UTC

Set JSONP dataType is jsonpCallback is used

Reported by: yehuda Owned by: rwaldron
Priority: low Milestone: 1.5
Component: ajax Version: 1.4
Keywords: ajaxrewrite Cc:
Blocked by: Blocking:

If the user uses the jsonpCallback setting, we should automatically set the dataType to "jsonp".

Attachments (0)
Change History (12)

Changed June 13, 2010 11:57PM UTC by dmethvin comment:1

component: unfiledajax

Changed October 22, 2010 10:50PM UTC by rwaldron comment:2

owner: → rwaldron
priority: majorlow
status: newassigned
type: bugenhancement

Changed October 22, 2010 11:07PM UTC by rwaldron comment:4


1.4.5 loosely speaking...

Changed October 23, 2010 09:37AM UTC by curiousdannii comment:5

Does your change mean that if jsonpCallback is set through $.ajaxSetup() then all requests will be converted to jsonp? It could be useful to set a default callback but have it still only apply to requests specifically set to jsonp. I suggest changing the test to:

if ( origSettings.jsonpCallback ) { ... }

Changed October 25, 2010 08:14PM UTC by john comment:6

resolution: → fixed
status: assignedclosed

Changed October 26, 2010 01:04AM UTC by john comment:7

resolution: fixed
status: closedreopened

I backed out that patch due to possible problems with the implementation.

Changed October 26, 2010 01:35AM UTC by rwaldron comment:8

milestone: 1.4.4
status: reopenedassigned

retargetting to blank and assigning to me.

Changed October 26, 2010 01:08PM UTC by rwaldron comment:9

milestone: → 1.4.5

Changed December 27, 2010 10:37PM UTC by rwaldron comment:10

keywords: → ajaxrewrite

Changed January 09, 2011 08:50PM UTC by jaubourg comment:11

resolution: → fixed
status: assignedclosed

Fixes #5803. Reworked jsonp prefilter so that it sets the dataType as jsonp and recognizes requests with originalSettings having jsonp or jsonpCallback to be jsonp. Moved default jsonp option value into ajaxSettings. Attached the transport to "jsonp" which avoids unnecessary testing. Transport factory sets dataType back to json for proper data conversion.

Changeset: 62a1a1a8fa64f92f429a3f5b8ed2e0d1f6fc3d6c

Changed January 14, 2011 10:20PM UTC by jitter comment:12


Move fixed tickets to appropriate milestone