89
rated 0 times
[
92]
[
3]
/ answers: 1 / hits: 43231
/ 11 Years ago, tue, september 3, 2013, 12:00:00
In my Jquery, i am using Ajax and getting below error msg.
TypeError: $.ajax(...).done is not a function
[Break On This Error] ).success(function(response) {
I tired using success instead of done. but still getting same msg.
TypeError: $.ajax(...).success is not a function
[Break On This Error] ).success(function(response) {
sample piece of code is mentioned below:
$(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);
});
More From » ajax