Bug Tracker

Modify

Ticket #435 (closed bug: fixed)

Opened 7 years ago

Last modified 6 years ago

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

comment:1 Changed 7 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.