Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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:
Blocked by: Blocking:

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 (1)

comment:1 Changed 16 years ago by joern

Resolution: fixed
Status: newclosed

Fixed in SVN.

Note: See TracTickets for help on using tickets.