I want to check if a .htm file exists locally. I do:
jQuery.ajax({
url: 'blahblah',
success: function (data, textStatus, xhr) {
console.log('xhr.status is ');
console.log(xhr.status);
},
error: function () {
console.log('in the error');
},
async: false
});
This works fine in chrome. But in Phonegap app on Android, this always goes to the success, whether the file exists or not and the status is always 200. Any ideas?