incompatible with jQuery 1.5 ajax implementation #36

Closed
jfirebaugh opened this Issue Feb 1, 2011 · 5 comments

Projects

None yet

5 participants

@jfirebaugh

I think the $.ajax override is causing problems with jQuery 1.5 -- calls to $.ajax with dataType: 'json' are triggering JSONP requests instead.

Reported by another user here: http://forum.jquery.com/topic/getjson-and-jquery-1-5

@uovidiu
uovidiu commented Feb 2, 2011

Thanks for the patch.

@krismolendyke

FYI there is also a patched fork for jQuery 1.5 written by the guy who re-wrote AJAX for 1.5 here:

https://github.com/jaubourg/jquery-validation

"Fixes jQuery 1.5- code by using jQuery.ajaxSettings and not window.ajaxSettings (yeah, that was dumb)."

@ringerc
ringerc commented Feb 15, 2011

This was a rather exciting headache for me - add jQuery validator plugin, and suddenly ajax requests break even if I'm not invoking or using the plugin anywhere. The bizarre nature of the issue (Accepts: header changing from application/json to application/javascript when validator loaded) meant it took me quite some time to track this down.

I'd love it if you could pull the fix from https://github.com/jaubourg/jquery-validation or adapt it. Even documenting on http://plugins.jquery.com/project/validate that the current version is incompatible with jquery 1.5 would make a difference to us poor newbies.

Thanks for the handy tool.

@jzaefferer
Collaborator

Pulled in jaubourg's fix.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment