项目区位图上传项目图类型: 请选择 域项目图 区域项目图 | ||||
|
2.js
function deleteProjectPic(spid){
if(confirm("是否删除该信息?")) //弹出确认对话框
{
deletePic(spid);//点击确定时执行删除操作。
}
}
function deletePic(spid){
var timeOut = 1000*60*5;//5分钟
jQuery.ajax({
mode:"",
async:false,
url:"/Business/NewHouse/DeleteProjectPicAjax.5i5j",
contentType:"application/x-www-form-urlencoded;charset=UTF-8",
data:{SPID:spid},
type:"post",
timeout:timeOut,
success:function(data){
var code="";
var message="";
var xmldoc=jQuery.parseXML(data);
jQuery(xmldoc).find("result").each(function(i)
{
code = jQuery(this).children("code").text();
message = jQuery(this).children("message").text();
});
alert(message);
window.location.href="/Business/NewHouse/NewHouseProjectCheckListView.5i5j";
},
error:function(XMLHttpRequest,textStatus,errorThrown){
if(textStatus == "timeout"){
alert("连接超时");
}
if(typeof ( loading)!="undefined"){
loading.hide();
}
}
});
}
原文:http://www.cnblogs.com/mayay/p/6919694.html