In my jQuery, I use Ajax and get below msg error message.
TypeError: $.ajax(...).done is not a function [Break On This Error] ).success(function(response) {
I was tired of success, not doing it. but still getting the same messages.
TypeError: $.ajax(...).success is not a function [Break On This Error] ).success(function(response) {
An example code snippet is shown 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); });
javascript jquery ajax
Shailendra kumar
source share