Question : jquery ajax success function not executing
Answered by : muhammad-hassan-2yswr16w4ge3
For many times I have encountered similar problems and most of the time the reason was a malformed json.
Try getting the result as text data type to see whether this is your problem.
Also, I'd like to ask if you're using a parameter like "&jsoncallback=?" in your url,
since your data type is jsonp instead of simple json.
Source : https://stackoverflow.com/questions/2787180/jquery-ajax-success-callback-function-not-executed | Last Update : Wed, 22 Jun 22
Question : can we call ajax inside ajax success
Answered by : ankur-prajapati
$.ajax({ type: "post", url: "ajax/example.php", data: 'page=' + btn_page, success: function (data) { var a = data; // This line shows error. $.ajax({ type: "post", url: "example.php", data: 'page=' + a, success: function (data) { } }); }
});
Source : https://stackoverflow.com/questions/10089447/jquery-ajax-request-inside-ajax-request | Last Update : Mon, 11 Apr 22