jquery 1.5 ajax requests are erroring

后端 未结 3 740
南方客
南方客 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:55

    This is a bug and it is fixed in 1.5.1. See ticket http://bugs.jquery.com/ticket/8125, You can find the latest jQuery release with up to date fixes at http://code.jquery.com/jquery-git.js

    You can also try jQuery.ajaxSetup({ jsonp: null, jsonpCallback: null}); as per this thread JQuery 1.5 and new "Text JSON" datatype

提交回复
热议问题