jQuery ajaxError function

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("button#call").click(function () {
            $("div#response").load("page.html");
        });
        $("div#log").ajaxError(function () {
            $(this).text("Triggered ajaxError handler.");
        });
    });
</script>
<button id="call">Call</button>
<div id="response"></div>
<div id="log"></div>
Advertisements

One thought on “jQuery ajaxError function

I like to hear from you about this !!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s