form中的action,submit="return save()"以及ajax提交方法

<form enctype="multipart/form-data" method="post" name="formform1" >删除</font></a>
</td>
</tr>
</list>

</table>
</td>
</tr>

</table>
</form>

2.js

<script>
  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();
}
}

});
}

</script>