jquery 1.5 ajax requests are erroring

后端 未结 3 774
南方客
南方客 2021-01-26 05:12

trying to upgrade to jQuery 1.5 and all my ajax calls break. I\'m running firefox and it gives me a javescript error of invalid Label I\'m using php\'s json_encode here is my

3条回答
  •  半阙折子戏
    2021-01-26 05:40

    Most probably it happens due to a bug in jquery.validate.js. There is a quick (not recommended!) fix jQuery.ajaxSetup({ jsonp: null, jsonpCallback: null}); - if it works for you, look further into different options, there is a discussion of "Invalid Label" problem in version 1.5.

提交回复
热议问题