hi, my project is based on ajax. my problem is project is not running properly, plz help me
my code is
req=false;
function setreq(){
try {
// Firefox, Opera 8.0+, Safari
return new XMLHttpRequest();
} catch (e) {
// Internet Explorer
try
{
return new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
return new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support AJAX!");
return false;
}
}
}
}
function tutor(url,ids){
req=setreq();
req.onreadystatechange=function(){
if(req.readyState==4){
document.getElementById(ids).innerHTML=req.responseText;
}
}
req.open("POST",url,true);
req.send("");
}