I have a piece of code:
$.get("go.php?action=sliderorder&right=5")
.success(function(data){alert("success!");})
.fail(function(data){alert("failed!");});
The output of the ajax call is "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near..."
The alert i'm getting is still "success!" although clearly the ajax failed.
So my question is: how do jquery address failed ajax calls?
Thanks ahead.