jQuery .ajax request failing
- by user1644808
I currently have a jQuery ajax request set up like this
$(document).ready(
function() { $.ajax({
url : "http://www.my-computer.com:51000/getJson",
cache : false,
dataType: "json",
success : renderPage,
error: handleError
})
});
If I manually naviate to http://www.my-computer.com:51000/getJson, I see it returns a json string correctly, but with the above request, I always fall into "handleError" method, with textStatus "error" and not much helpful information. Can anyone help? Thanks!
EDIT: sorry about the my-computer domain. this stackoverflow submission won't let me input localhost, so I put in an arbitrary domain instead. I've tried firebug, but had no luck in getting the json back.