I am developing a small plugin which appears in the post page and it has a touch of Ajax.
$("#some-div").ajaxStart(function(){
$(this).html('Loading...');
});
$.post(
AjaxHandler.ajaxurl,
{ action : 'wt4-cats', },
function(response) {
//do some stuff
});
thing is that Wordpress triggers the autosave feature every few minutes or so and affects my ajaxStart call. I mean, on autosave the "some-div" html becomes "Loading...". Is possible to avoid that?