この JSON リクエスト:
$.ajax({
url:jSONurl+'?orderID='+thisOrderID+'&variationID='+thisVariationID+'&quantity='+thisQuantity+'&callback=?',
async: false,
type: 'POST',
dataType: 'json',
success: function(data) {
if (data.response == 'success'){
//show the tick. allow the booking to go through
$('#loadingSML'+thisVariationID).hide();
$('#tick'+thisVariationID).show();
}else{
//show the cross. Do not allow the booking to be made
$('#loadingSML'+thisVariationID).hide();
$('#cross'+thisVariationID).hide();
$('#unableToReserveError').slideDown();
//disable the form
$('#OrderForm_OrderForm input').attr('disabled','disabled');
}
},
error: function(data){
alert('error');
}
})
特定の状況では、次の形式で 500 エラーが返されます。
jQuery17205593111887289146_1338951277057({"message":"Availability exhausted","status":500});
ただし、これは私にとってはまだ有用であり、これを正しく処理できるようにする必要があります。
ただし、何らかの理由で、この 500 エラーが返されると、エラー関数が呼び出されず、firebug で "NetworkError: 500 Internal Server Error" エラーが発生します。
どうすればこれを処理できますか?