Method One:
function gethttp (SID, URL) {
var xmlHttp;
if (window. ActiveXObject) {
XmlHttp = new ActiveXObject ("Microsoft.XMLHTTP");
}
else if (window. XMLHttpRequest) {
XmlHttp = new XMLHttpRequest ();
}
Xmlhttp.onreadystatechange = function () {
if (xmlhttp.readystate = = 4) {
document.getElementById (SID). InnerHTML = Xmlhttp.responsetext;
}
}
Xmlhttp.open ("POST", url,true);
Xmlhttp.send (NULL);
}
Method Two:
function gethttp (SID, URL) {
if (window. XMLHttpRequest) {
var req = new XMLHttpRequest ();
if (Req.overridemimetype) {
Req.overridemimetype (' text/html ');
}
Req.onreadystatechange = function () {
if (req.readystate = = 4) {
if (Req.status = = 200) {
Alert (id+ "" +req.responsetext);
document.getElementById (SID). InnerHTML = Req.responsetext;
}
else {
Alert ("Problem with server response:" + Req.statustext);
}
}
}
try {
Req.open ("POST", url, True);
}
catch (e) {
Alert ("Server communication Problem" +e);
}
Req.setrequestheader ("Cache-control", "No-cache");
Req.setrequestheader ("If-modified-since", New Date (0));
Req.setrequestheader ("Content-length", url.length);
Req.setrequestheader ("Connection", "close");
Req.send (NULL);
}
Else
if (window. ActiveXObject) {
try{
var req = new ActiveXObject ("Msxml2.xmlhttp");
Req.setrequestheader ("Content-type", </