Jquery ajax call within the success function of another ajax call not working and not telling the type of error correctly. Web Design.This is working perfectly in localhost but not on the server. Heres what I am doing. I am trying to call rest api using this codes response is coming in error. It should be in success. Can somebody help me on this. if u hit the url in browser you will get the response in a json structure.ajaxcallback. Below is my code and issue is with cache code is not working properly if any ajax call has callback in success. var localCache / .Ajax codes. here is some jQuery code that i used to get form data. Im using jquery to make an ajax call and it simply does not work after Ive added the routingcontentType: "application/json charsetutf-8", dataType: "json", and use ResolveUrl but not work sir plz help me. Inside the callback, this refers to the jqXHR object of the Ajax call, not the element the event handler was bound to.