The final function is as following:
For synchronous mode:
Code:
function GetXmlHttpObject(divID,url)
{
xmlHttp=XmlHttpObject();
if (xmlHttp==null)
{
alert("Your browser does not support AJAX!");
return FALSE;
}
xmlHttp.onreadystatechange = function()
{
Leave a comment: