[eluser]Shiju S S[/eluser]
Code:
var xmlHttp55;
//////////////////////////
function categorycheck(id){
document.getElementById("subcategory")[removed]="<img src='images/loading.gif' width='10' height='10' > Loading.......";
xmlHttp55=GetXmlHttpObject()
if (xmlHttp55==null)
{
alert ("Your browser does not support AJAX!");
return;
}
idu=escape(id);
var url="/executives/category"
url=url+"/"+idu;
xmlHttp55.onreadystatechange=stateChangedEff3;
xmlHttp55.open("GET",url,true);
xmlHttp55.send(null);
}
function stateChangedEff3()
{
if (xmlHttp55.readyState==4)
document.getElementById("subcategory")[removed]=xmlHttp55.responseText;
}
///////////////////
function GetXmlHttpObject()
{
var xmlHttp55=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp55=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp55=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp55=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp55;
}