I was trying to make the simplest AJAX request possible, which for some reason (unexpectedly) works in IE, but not in Chrome?
Here is the code:
var x = new XMLHttpRequest();
x.open("GET","style.php",true);
x.send();
alert(x.responseText);
The last row merely makes an empty 'alert' window pop up.
The PHP code:
<?php
header("Content-Type: text/plain");
echo "HELLO"; ?>
Someone suggested that I put text/plain header before the code, didn't work. The JS console in Chrome shows status as 200, and 800B as received, so the script receives the response, but doesn't see it?
Thank you very much in advance