I have a PHP file called 'myProxy.php' sitting on my server that looks like this:
<?php
echo "text";
exit();
?>
When I try to get that string from the file with an AJAX call that looks like this:
$.ajax({
url: "http://www.mydomain.com/myProxy.php",
type: "GET",
success: function(data) {
alert("Horray!");
}
});
The script turns absolutely nothing and I get a red error icon in the Firebug console. Does anyone know what might be causing this? Perhaps a setting is not set somewhere?
myProxy.phpfile directly in your browser? Why are you using the full URI? Non-JSONP calls should be on the same domain and therefore, the URI should be relative