I am not able to call a file: "fillDropDown.php". Why this code is not working?
function MakeRequest()
{
var xmlHttp = getXMLHttp();
try
{
xmlHttp.onreadystatechange = function()
{
if (xmlHttp.readyState == 4)
{
HandleResponse(xmlHttp.responseText);
}
}
xmlHttp.open("GET", "filldropdown.php", true);
xmlHttp.send(null);
}
catch(err)
{
alert(err);
}
}
Edited: =======
I am using AJAX code as suggested in this link: http://www.switchonthecode.com/tutorials/simple-ajax-php-and-javascript