var xmlHttpRequest;
function getXmlHttp(){
var xmlhttp=null;
if(window.XmlHttpRequest)
{
xmhttp=new XmlHttpRequest();
}
is(window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHttp");
}
return xmlhttp;
}
function populateList(){
var url="ln.jsp?username=williams&password=passw0rd";
if(!xmlHttpRequest)
{
xmlHttpRequest=getXmlHttp();
}
if(!xmlHttpRequest)
return;
xmlHttpRequest.open("GET",url,true);
xmlHttpRequest.onreadyStateChange=getResult;
xmlHttpRequest.send(null);
}
function getResult(){
if(xmlHttpRequest.readyState==4&&xmlHttpRequest.status==200)
{
document.getElementById("ln").innerHTML=xmlHttpRequest.responseText;
}
else
{
............................................................
}
}