xmlfunction PostImage(myimagedata)
{
var xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP");
//document.Write(xmlhttp.status)
xmlhttp.Open("POST", "http://192.168.30.42/getpostimage.asp", false);
xmlhttp.setRequestHeader("enctype","multipart/form-data");
xmlhttp.setRequestHeader("Content-Length", 128);
xmlhttp.Send(myimagedata);
return xmlhttp.responseText;
}
xmlhttp的应用一法
80酷酷网 80kuku.com