gregorypune
New Member
I've tried to use ajax to read an XML data from this link: http://www.nhaccuatui.com/api/player.ashx?key=0023007300040007002000630008000a003d00330022001fbut it seem to be not working. I dont know what's wrong with my code. It always returns error.\[code\] test: function(){ URL = 'http://www.nhaccuatui.com/api/player.ashx?key=0023007300040007002000630008000a003d00330022001f'; $.ajax({ url: URL, success: function(data, textStatus, jqXHR) { alert('Success '+data); }, error: function (xhr, status) { switch (status) { case 404: alert('File not found'); break; case 500: alert('Server error'); break; case 0: alert('Request aborted'); break; default: alert(xhr.statusText); } } }); },\[/code\]