Testcase for jQuery Ticket 6248

success called on fail?

by jitter

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<a href="#" id="clicker">Click Me</a>

JavaScript

function callAjax() {
    console.log("Starting ajax");

    $.ajax({
        url: "http://nowheretobefounddomain.net/blah.php",
        success: function(msg) {
            console.log("ajax successful");
        },
        error: function() {
            console.log("ajax failed");
        }
    });
}

setInterval(callAjax, 5000);

$(function() {
    $('#clicker').click(function() {
        callAjax();
    });
});