0
我'试图使一个AJAX调用删除一行在表我的功能只是工作在Chrome和IE8中也没有Firefox的AJAX删除无法在某些浏览器工作
function delete_row(id)
{
if(confirm('Confirm to delete this Equipement ?')){
$.ajax
({
type:'post',
url:'edit_equipment.php',
data:{
delete_row:'delete_row',
row_id:id
},
success:function(response) {
if(response=="success")
{
var row=document.getElementById("row"+id);
row.parentNode.removeChild(row);
}
}
});
}
window.location.reload();
}
,我需要重新加载页面上展示其它compenents –
更新的问题@ liane:然后就做上面的第二件事。 –
或有任何方法可以确保请求完成,然后重新加载! –