<span style="font-family:SimHei;font-size:18px;">參數xml為XML格式字元串
function editDeviceParameter(xml)
{
var rData;
var xmlDom=new ActiveXObject("Microsoft.XMLDOM")
xmlDom.loadXML(xml)
alert(xmlDom);
$.ajax({
async:false,
cache:false,
type:"POST",
url:"../ajaxData.aspx?action=editDeviceParameter",
dataType: 'xml',
processData: false,
timeout:300000,
data:xmlDom,
beforeSend:function(){},
success:function(xmlDom){
rData=unescape(xmlDom);
},
error:function(oXmlHttpReq, textStatus, errorThrown){
alert("編輯裝置參數失敗!"+textStatus);
}
});
return rData;
}
接收
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Request.InputStream);</span>