I have code as such:
$.ajax({
method: "GET",
url: page,
dataType: 'html',
data:data,
success: function(data){
console.log(data);
},
error: function(){
console.log('error');
}
});
Using the Chrome or Firefox debugger, I see that the request is successful with a 200 OK response, and the response contains the expected data. My problem, however, is that no callbacks work. "Success" does not work and not "Error". In addition, no pending methods work, for example, “done,” “then,” or “always.”
I have been trying to solve this problem for the past few hours to no avail. I have a complete loss. I also tried using methods like "$ .get" with the same result.
In short, I get a response, but the code in jQuery does not start any callbacks and all without visible errors in the console.