I am making ajax call like this
$(document).ready(function() {
var abc = new Array();
var title ;
var start ;
abc.push({
title: title,
start: start
});
$('#calendar').fullCalendar({
...
});
$.ajax({
url: "EventCalendar_Review",
success: function(data) {
console.log(data);
}
}); //end of .ajax
}); //end of $(document).ready(function()
EventCalender_Review is a java file on the server. While debugging i saw that it goes to server. Where i collect data, but it is not coming inside the success function. I want that that whatever data i get from the server i use it in my script. But success function is not executing. What i am doing wrong?
Thanks
use the complete(jqXHR, textStatus) callback, and see if your request is not in error state with textStatus.