<SCRIPT>
self.clientInformation
function SendXml()
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST","MsgShow.aspx",false);
xmlhttp.setRequestHeader("Content-Type","text/xml");
xmlhttp.send("<root>hello</root>");
if (xmlhttp.status != 200)
alert(xmlhttp.statusText);
else
alert(xmlhttp.responseText);
}
</SCRIPT>
xmlhttp
最新推荐文章于 2024-06-20 18:52:23 发布
博客展示了一段JavaScript代码,定义了名为SendXml的函数。该函数使用ActiveXObject创建XMLHTTP对象,以POST方式向MsgShow.aspx发送XML数据,根据响应状态给出不同提示,体现了JavaScript在处理XML数据传输方面的应用。

1347

被折叠的 条评论
为什么被折叠?



