ajax异步处理
发布时间:2020-12-15 22:03:29 所属栏目:百科 来源:网络整理
导读: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
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.onload=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(); } } } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |