I Know in jQuery ajax there is tools to detect error but that I want is how to describe what is the problem? 404, no internet connection, internal server error or something else?
This is my simple program
<script type="text/javascript" charset="utf-8" src="http://jquery.local/jquery-1.7.2.min.js"></script>
<script>
function Create_new_event ()
{
url = "missing.php";
$.post(url, {
}, function(hasil) {
alert (hasil);
});
}
$(document).ajaxError(function(event, request, settings) {
// I believe in this area I should put my code to detect problem
});
</script>
<button onClick="Create_new_event ();">Send</button>