Wanna hit a server side page without submitting the main page…
{
var pageUrl = url + "? + params;
var xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
xmlRequest.open("POST", pageUrl, false);
xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlRequest.send(null);
return xmlRequest;
}
var resText = xmlRequest.responseText;
try it out…
No comments:
Post a Comment