I haven’t been able to retrieve the error message from my ajax call in order to figure out what the error is.
I’ve seen this question: errorThrown in Jquery Ajax Returns Undefined?
I copied that error call, but still no result.
grab_songs = function() {
$.ajax({
type:'POST',
url: 'http://tangoalphatango.com/songs.php',
succss: function(data) {
$('#result').html('success');
},
error: function(x, textStatus, errorThrown){
alert(errorThrown);
}
});
}
$('.song-title').click(grab_songs);
Why won’t ajax give me an error message?
The request is no longer failing, but I’ve no idea what changed. I was never able to capture an error message and the browser console never gave me an error either. All I can do is chalk it up to a server error.