tags:

views:

15

answers:

1

A user click a button that makes a request and then click again and again and again...

I wanted to use xhr.abort(), but I don't know if I can retrieve it from $.load.

Is it possible?

+2  A: 

If you want it for an abort, you should perhaps use $.get() instead.

var xhr = $.get('url', function(response) {
    $('#myElement').append( response );
});

xhr.abort();
patrick dw