XMLHTTPRequest对象-XML/XSLT
日期:04-23  来源:
中国设计秀 作者:cnwebshow.com
nPv中国设计秀
alert("Result = " + xmlhttp.responseXML.xml);nPv中国设计秀
nPv中国设计秀
// 属性:statusnPv中国设计秀
// 返回当前请求的http状态码nPv中国设计秀
// 语法:lValue = oXMLHttpRequest.status;nPv中国设计秀
// 返回值:长整形标准http状态码,定义如下: nPv中国设计秀
// Number:Description nPv中国设计秀
// 100:ContinuenPv中国设计秀
// 101:Switching protocolsnPv中国设计秀
// 200:OKnPv中国设计秀
// 201:CreatednPv中国设计秀
// 202:AcceptednPv中国设计秀
// 203:Non-Authoritative InformationnPv中国设计秀
// 204:No ContentnPv中国设计秀
// 205:Reset ContentnPv中国设计秀
// 206:Partial ContentnPv中国设计秀
// 300:Multiple ChoicesnPv中国设计秀
// 301:Moved PermanentlynPv中国设计秀
// 302:FoundnPv中国设计秀
// 303:See OthernPv中国设计秀
// 304:Not ModifiednPv中国设计秀
// 305:Use ProxynPv中国设计秀
// 307:Temporary RedirectnPv中国设计秀
// 400:Bad RequestnPv中国设计秀
// 401:UnauthorizednPv中国设计秀
// 402:Payment RequirednPv中国设计秀
// 403:ForbiddennPv中国设计秀
// 404:Not FoundnPv中国设计秀
// 405:Method Not AllowednPv中国设计秀
// 406:Not AcceptablenPv中国设计秀
// 407:Proxy Authentication RequirednPv中国设计秀
// 408:Request TimeoutnPv中国设计秀
// 409:ConflictnPv中国设计秀
// 410:GonenPv中国设计秀
// 411:Length RequirednPv中国设计秀
// 412:Precondition FailednPv中国设计秀
// 413:Request Entity Too LargenPv中国设计秀
// 414:Request-URI Too LongnPv中国设计秀
// 415:Unsupported Media Type nPv中国设计秀
// 416:Requested Range Not Suitable nPv中国设计秀
// 417:Expectation Failed nPv中国设计秀
// 500:Internal Server Error nPv中国设计秀
// 501:Not ImplementednPv中国设计秀
// 502:Bad GatewaynPv中国设计秀
// 503:Service UnavailablenPv中国设计秀
// 504:Gateway Timeout nPv中国设计秀
// 505:HTTP Version Not SupportednPv中国设计秀
// 备注:长整形,此属性只读,返回当前请求的http状态码,此属性仅当数据发送并接收完毕后才可获取。 nPv中国设计秀
alert(xmlhttp.status);nPv中国设计秀
nPv中国设计秀
// 属性:statusTextnPv中国设计秀
// 返回当前请求的响应行状态nPv中国设计秀
// 语法:strValue = oXMLHttpRequest.statusText;nPv中国设计秀
// 备注:字符串,此属性只读,以BSTR返回当前请求的响应行状态,此属性仅当数据发送并接收完毕后才可获取。 nPv中国设计秀
alert(xmlhttp.statusText);nPv中国设计秀
}nPv中国设计秀
}nPv中国设计秀
//-->nPv中国设计秀
</script>nPv中国设计秀
</head>nPv中国设计秀
<body>nPv中国设计秀
<form name="frmTest"> nPv中国设计秀
<input name="myButton" type="button" value="Click Me" onclick="PostOrder('http://localhost/example.htm');">nPv中国设计秀
</form> nPv中国设计秀
</body>nPv中国设计秀
</html>nPv中国设计秀
nPv中国设计秀
nPv中国设计秀
呵呵,我很久前在blueidea上发表的,现在找到了,就发出来了,以后我会自己写更多的东西的.nPv中国设计秀