나는 다음과 같이] 파일의 코드가되는 XML에서 뭔가 삭제 JQuery와 클릭 이벤트를 만들었습니다이 코드에 어떤 문제가 있습니까?
$(".delete_engine").bind("click",function(){
var del = $(this);
var id = del.attr("id");
var c = confirm("You sure want to delete this?");
if(c)
{
/* $(this).next('.pclass').remove();
$(this).prev('.rurl').remove();
$(this).remove();*/
$.ajax({
type: "POST",
url: "http://localhost:8080/cPEP_UI/Engine_engine_delete",
data: "eid="+id,
dataType: "json",
success: function(data) {
$('#light').html("<img src='loading.gif' alt='loading gif'/>");
$('#light').css("display","block");
$('#fade').css("display","block");
if(data.update == "success"){
del.parent().next().remove();
del.parent().remove();
$('#light').html(data.message+" "+data.update);
}
},
error:function(xhr,err){
//alert("readyState: "+xhr.readyState+"\nstatus: "+xhr.status);
alert("readyState: "+xhr.readyState+"\nstatus: "+xhr.status);
$('.error').html("responseText: "+xhr.responseText);
}
});
}
});
을하지만 것은 그것의 구글 크롬 작업을하지만, 모질라 파이어 폭스에서 제대로 작동하지 않는 것이다. 왜 이런 일이 일어나고 있는지에 대한 아이디어는?! 그것은 캐시 때문입니까!?
무엇을 작동하지 않습니다? 해서는 안되는 일이 일어나고 있거나 일어나지 않아야합니다. –
너무 까다 롭지는 않지만,이 나쁜 소년을 왼쪽 여백으로 다시 태우는 것이 마음에 드시겠습니까? :) – pixelbobby
어떤 일이 일어나지 않습니다 : xml 파일에서 특정 항목을 삭제하지 않고 jquery ajax 메서드도 표시하거나 오류 메시지를 표시하지 않습니다. 그러나 mozilla에서 #light id div를 표시하는 광고를 제대로 삭제하고 있습니다. – Maverick