[CODE=javascript]
//deleteComment
$('a.c_delete') .livequery("cli ck", function(e){
if(confirm('Are you sure you want to delete this comment?')==fal se)
return false;
e.preventDefaul t();
var parent = $(this).parent( );
var c_id = $(this).attr('i d').replace('CI D-','');
$.ajax({
type: 'get',
url: 'delete_comment .php?c_id='+ c_id,
data: '',
beforeSend: function(){
},
success: function(){
parent.fadeOut( 200,function(){
parent.remove() ;
});
[/CODE]
this code works fine with firefox it just fades out and removes the comment with that id , but with Internet Explorer it fades out and removes that comment out plus all other comments below that comment to the bottom of the page, why does this happen? any help would be great thanx .
//deleteComment
$('a.c_delete') .livequery("cli ck", function(e){
if(confirm('Are you sure you want to delete this comment?')==fal se)
return false;
e.preventDefaul t();
var parent = $(this).parent( );
var c_id = $(this).attr('i d').replace('CI D-','');
$.ajax({
type: 'get',
url: 'delete_comment .php?c_id='+ c_id,
data: '',
beforeSend: function(){
},
success: function(){
parent.fadeOut( 200,function(){
parent.remove() ;
});
[/CODE]
this code works fine with firefox it just fades out and removes the comment with that id , but with Internet Explorer it fades out and removes that comment out plus all other comments below that comment to the bottom of the page, why does this happen? any help would be great thanx .
Comment