Link to home
Start Free TrialLog in
Avatar of ellandrd
ellandrdFlag for Ireland

asked on

jQuery / Prototype bugs in IE

I use jQuery 1.2.1 and Prototype 1.5.1 libraries for some effects when deleting records from the database.  I have noticed it does not return the second callback response for all versions of IE - 5, 6 & 7 so i do not get my last effect occuring...

This is a bug or am I doing something wrong?  I have tested the script on a number of other browsers and it all works fine...so i guess it is an issue with Micro$lop browser - IE...

See my code below:
function removeRow(eid,mid) {
	var myAjax = new Ajax.Request("delete-email-alert.jsp?eid=" + eid, {
		method:'get',
		onSuccess: function(callback) {
			var object = new Ajax.Request("count-email-alerts.jsp?mid=" + mid, {
				method:'get',
				onSuccess: function(callback) {
					if(callback.responseText == 0) {
						$("#"+eid).fadeOut("slow", function() {
							$(this).html("<div class=\"col-empty\">All email alerts have now been deleted!</div>").fadeIn("slow");
						});
					} else {
						$("#"+eid).fadeOut("slow").slideUp();
					}
				}
			});
		}
	});
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of gops1
gops1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ellandrd

ASKER

Cheers guys - i was unaware of the caching issue in IE...

Works perfect now.

Ellandrd