私のJqueryでは、Ajaxを使用していて、エラーメッセージを下回っています。
TypeError: $.ajax(...).done is not a function
[Break On This Error] ).success(function(response) {
完了の代わりに成功を使用するのにうんざりしました。それでも同じメッセージが表示されます。
TypeError: $.ajax(...).success is not a function
[Break On This Error] ).success(function(response) {
サンプルコードを以下に示します。
$(document).ready(function () {
alert('in get');
$.ajax({
data: {
'contentId': contentId,
'USER_ID': USER_ID,
'actionType': 'GETRATING',
'portletGuid': portletGuid
},
type: 'GET',
url: ajaxRatingServlet,
cache: false
}).success(function (response) {
getUserPreference(response);
});