How do you catch Server Error or 404 page not found, when you use $.get or $.post ?
For example:
$.post(\"/myhandler\", { value: 1 }, function(data)
use error handler on $.ajax()
error
$.ajax({ url: "/myhandler", data: {value: 1}, type: 'post', error: function(XMLHttpRequest, textStatus, errorThrown){ alert('status:' + XMLHttpRequest.status + ', status text: ' + XMLHttpRequest.statusText); }, success: function(data){} });