$url = "http://api.fanfeedr.com/basic/all_scores?appid=735sdkx8cqvh8jbwyfzmr3x7"
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response_body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if (intval($status) != 200) die("Error: $response_body");
var_dump(json_decode($response));
?>

This piece of code is my javascript. I am sorry I don't know how to post code like Adam did, where it was more organized. I used the blockquote which seemed to help the spacing.
function checkRival() {
fanfeedr();
}
function createRequest() {
try {
request = new XMLHttpRequest();
} catch (tryMS) {
try {
request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (otherMS) {
try {
request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (failed) {
request = null;
}
}
}
return request;
}
function fanfeedr() {
createRequest();
if (request == null) {
alert("Unable to create request");
return;
}
var url= "getFeedr.php";
request.open("GET", url, true);
request.onreadystatechange = displayFeedr;
request.send(null);
}
function displayFeedr() {
if (request.readyState == 4) {
if (request.status == 200) {
alert("here");
//var myObject = eval('(' + myJSONtext + ')');
detailDiv = document.getElementById("fanfeedr");
detailDiv.innerHTML = request.responseXML;
}
}
}
I think I need to fix how this is being displayed. I wrote in a previous blog comment that I was going to look at what Adam wrote and try and incorporate some of that. I am not sure that will work or not but is always worth a try. Does anyone else have any more suggestions for me?