I use the following jQuery (1.4) code to test whether cookies are accepted:
$.get("http://localhost:8080/cookietester/cookietester", function(data) {
if (data == "false")
document.write("Activate cookies!");
else if(data == "true")
document.write("ok");
});
But the browser signals that it doesn't stop page loading. Google Chrome 5 doesn't execute the script properly and doesn't display anything.
Is something wrong with this code?