I have the following code which is giving me a Method POST, Status (canceled) error message:
Method POST, Status (canceled)
$(document).ready(function() { var xhr = false;
That is because you are calling abort method which possibly triggers the error handler with appropriate error message.
abort
You can possibly wait for previous ajax request to complete before making the next call.