Hi all, I'm trying to use my IIS server and Configured PHP 5.2. Small programs like phpinfo file are all working fine. I'm trying to solve a worked example from the book. That worked example has 3 types of output. 1) Table with lot of radio buttons of some news channels and one submit buttons. When we click on any radio buttons and press the submit button, it works fine for me. 2) Receiving Synchronous response 3) Receiving Asynchronous response These 2 and 3 are not working properly. It displays the table with 2 columns but the second column is completely blank not displaying anything. Even though I have not written the code myself. Copied from the book and tried to solve. But it is not working. Plz let me know where I'm doing wrong. The complete code of asynchronous response is


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Top Stories</title>

<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />

<style type="text/css">

h1 {
font-family:arial;
color:navy;
}
p, td {
font-family:arial;
font-size:11px;
color:black;
}

</style>

<script type="text/javascript">

/* < ![CDATA[ */
/* ]]> */
var httprequest = false;

function getRequestObject()
{
try
{
httpRequest = new XMLHttpRequest();
}
catch (requestError)
{

try
{
httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (requestError)
{
try
{
httpRequest = new ActiveXObject ("Microsoft.XMLHTTP");
}
catch (requestError)
{
window.alert("Your browser does not support AJAX!");
return false;
}
}
}
return httpRequest;
}

function newsUpdate()
{
if (!httpRequest)
httpRequest = getRequestObject();
for (var i=0; i<6; ++i)
{
if (document.forms[0].agency[i].checked == true)
{
var agency = document.forms[0].agency[i].value;
break;
}
}
httpRequest.abort();
httpRequest.open("get","TopStories.php?" + "agency=" + agency, true);
httpRequest.send(null);
httpRequest.onreadystatechange=fillNewsInfo;
var recentNews = setTimeout('newsUpdate()', 5000);

}

function fillNewsInfo()
{
if (httpRequest.readyState==4 && httpRequest.status == 200)
{
var news = httpRequest.responseXML;
document.getElementById("newsCell").innerHTML = "";
var newsItems=news.getElementsByTagName("item");
if (newsItems.length > 0)
{
for (var i=0; i<newsItems.length; ++i)
{
var curHeadline = newsItems[i].getElementsByTagName(
"title")[0].childNodes[0].nodeValue;
var curLink = newsItems[i].getElementsByTagName(
"link")[0].childNodes[0].nodeValue;
var curPubDate= newsItems[i].getElementsByTagName(
"pubDate")[0].childNodes[0].nodeValue;
var curDesc = newsItems[i].getElementsByTagName(
"description")[0].childNodes[0].nodeValue;

var curStory = "<a href ='" + curLink + "'>" + curHeadline + "</a><br />";
curStory += "<span style='color: gray'>" + curPubDate
+ "</span><br />";
curStory += curDesc + "<br />";
document.getElementById("newsCell").innerHTML += curStory;


}
}
else
document.getElementById("newsCell").innerHTML
= "RSS feed does not contain any items.";
}
}

</script>

</head>

<body onload="newsUpdate()">

<h1>Top Stories</h1>
<form method="GET" action="TopStories.php">

<table border="1">
<colgroup span="1" width="125" />
<colgroup span="1" width="350" />
<tr><td valign="top">

<input type="radio" name="agency"
value="http://my.abcnews.go.com/rsspublic/fp_rss20.xml"
checked="checked" onclick="newsUpdate()"/> ABC News <br />

<input type="radio" name="agency"
value="http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/
front_page/rss.xml" onclick="newsUpdate()"/> BBC<br />

<input type="radio" name="agency"
value="http://www.cbsnews.com/feeds/rss/main.rss" onclick="newsUpdate()"/> CBSNews<br />

<input type="radio" name="agency"
value="http://rss.cnn.com/rss/cnn_topstories.rss" onclick="newsUpdate()" /> CNN<br />

<input type="radio" name="agency"
value="http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml" onclick="newsUpdate()"/>
MSNBC<br />

<input type="radio" name="agency"
value="http://rss.news.yahoo.com/rss/topstories" /> Yahoo! News
</td><td id="newsCell" valign="top" onclick="newsUpdate()"></td></tr>

</table>
</form>
</body>
</html>