You can use $.load()
like this, to get more data of whats happening. When you see the error message, you probably can solve it yourself ^^
$("#contents").load("home.php", function(response, status, xhr) {
if (status == "error") {
// alert(msg + xhr.status + " " + xhr.statusText);
console.log(msg + xhr.status + " " + xhr.statusText);
}
});