Modify ↓
Ticket #435 (closed bug: fixed)
ajaxStop throws 'null' is null or not a valid object in IE
| Reported by: | joern | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | ajax | Version: | |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Testcase:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Test ajaxStop on IE</title>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<p>click me</p>
<script type="text/javascript">
var root = $("p").before('<div id="feedback">').prev("div").attr("style", "color:#0f0; border:1px solid #0f0").hide();
$(document).ajaxStop(function() {
root.html("successfully updated").show();
});
$("p")
.bind("click", function() {
var x = this;
root.html("updating...");
$.ajax({
type: "POST",
url: "dummy.php",
dataType: "html",
success: function(d) {
$(x).html(d);
}
});
});
</script>
</body>
</html>
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed in SVN.