This is what I’m doing:
$.ajax({
"url":"localhost:8888/check_app",
"success":function(data) {
alert("success!");
callback(data);
},
"error":function(data){
alert(JSON.stringify(data));
}
});
Which errors out on both FF and Chrome. Firebug shows that no XHR request was made.
Edit: I use node.js on the backend; and the console shows it did not receive any requests.
When I change $.ajax to $.get, I do see a XHR request in Firebug, but the url is some weird encoded string I do not recognize.
I’ve been working on this whole afternoon…
Right now, your browser is looking for a folder named
localhost:8888and a file in that folder calledcheck_app.What you want is to make the path absolute, with
http://localhost:8888/check_appinstead.