function doStop(id,parentNodeObj){
if(confirm("确实要停止吗?")){
var str="<div width='100%' align='center'><image src='<%=request.getContextPath()%>/img/loading4.gif'></image></div>";
parentNodeObj.innerHTML=str;
var xhr=createXMLRequest();
if (xhr!=null)
{
xhr.οnlοad=function()
{
window.location="<%=request.getContextPath()%>/testManage_showEnvInstance";
}
xhr.open("post","<%=request.getContextPath()%>/experimentManage_stopExperimentEnv?deploymentId_="+id,true);
xhr.send(null);
}
else
{
document.forms[0].method ='post';
document.forms[0].action="<%=request.getContextPath()%>/experimentManage_stopExperimentEnv?deploymentId_="+id;
document.forms[0].submit();
}
}
}
ajax异步处理
最新推荐文章于 2022-07-22 19:41:46 发布