I'm not sure what it is but it's obviously in the ajax callback (the delete completed). My best guess would be that chaining fadeOut() and slideUp() this way may not be a very good idea, better to use just one or the other in my opinion, though I'm not sure it's what's causing the trouble. Anyway, IE is always a pain, so...
Michel Belleville 2009/11/11 Dave Maharaj :: WidePixels.com <d...@widepixels.com> > I have a my content wrapped in a div. It has a "delete' button. Click > delete > will add the pre_delete class to the div your about to delete and a confirm > alert. Click yes and the section fades out / deleted in back-end. Click no > the div returns to normal with the pre_delete class being removed. > > In IE 7 (not tested in IE6, fine in FF, Google, Opera) if i click delete / > confirm yes the div does not fade out. when i hit refresh the record has > been deleted, its just not performing the fadeout / remove after confirm. > > Looking at thisany ideas? > > $("a.delete").live('click', function (){ > var url_id = $(this).attr("href"); > var div_id = url_id.split('/'); > var set_id = 'set_'+div_id[div_id.length-1]; > > $('#'+set_id).addClass('pre_delete'); > > if (confirm('Are you sure you want to delete the selected entry?')) { > $.ajax({ > type: "POST", > url: url_id, > success: function(){ > $('#' + set_id).fadeOut('fast').slideUp('slow', function () { > $(this).remove(); > }); > } > }); > > } else { > $('#'+set_id).removeClass('pre_delete'); > } > return false; > }); > > Thanks, > > Dave > >