XMLHTTP 发送数据

来源:www.heci.net 时间:2006/4/11 16:57:04 作者:heci
[更多内容 - www.heci.net 贺 词 网!]
XMLHTTP 发送数据

var Request = null;
var actionUrl="<%=autoUrl%>";
if(document.checkboxForm.deluninstall.checked)
actionUrl=actionUrl+"&deluninstall="+document.checkboxForm.deluninstall.value;
Request = new ActiveXObject("Microsoft.XMLHTTP");


Request.open("GET",actionUrl,false);
Request.send();

//setRequestHeader 要在.open之后打开
//Request.open("POST",actionUrl,false);
//Request.setRequestHeader("Content-Length",str_send.length);
//Request.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
//str_send = "act=delfunction&idList="+perGrpIDList;
//Request.send(str_send); 
{文章来自:贺词 收藏网 www.heci.net!}