function ajaxget(next_feed)
{
var xmlHttpReq
// Mozilla/Safari
if (window.XMLHttpRequest) xmlHttpReq = new XMLHttpRequest();
// IE
else if (window.ActiveXObject) xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttpReq.open('GET', "feed_status.php&="+next_feed, true);
xmlHttpReq.onreadystatechange = function()
{
if (xmlHttpReq.readyState == 4) ajaxprocess(xmlHttpReq.responseText);
}
}
function ajaxprocess(ajax_text)
{
// The following just changes something on my webpage so I know its executed
document.getElementById("text_2").innerHTML = "XXXXXXXXXXXXXXXX";
}
Where feed_status.php is ....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=us-ascii">
<link rel="stylesheet" type="text/css" href="base2.css">
<title>Kmotion</title>
</head>
<body id="feed_status">
<?php
echo "some test"
?>