Hallo,
anbei mal der Code
$.ajax({method: "GET",url: ajaxnavi, data: ajaxvars, success: function(response){
$("#navi").html(response);
}});
$.ajax({method: "POST",url: ajaxcontent, data: ajaxvars, cache: false, success: function(response){
$("#content").html(response);
},
error: function (jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [404]';
} else if (jqXHR.status == 500) {
msg = 'Internal Server Error [500].';
} else if (exception === 'parsererror') {
msg = 'Requested JSON parse failed.';
} else if (exception === 'timeout') {
msg = 'Time out error.';
} else if (exception === 'abort') {
msg = 'Ajax request aborted.';
} else {
msg = 'Uncaught Error.\n' + jqXHR.responseText;
}
console.log(msg);
console.log(jqXHR.responseText);
console.log(exception);
}
});
}