abortPrevious

Release 1.3 - ...

Using the abortPrevious (boolean) property, you can make sure previous requests to the same Smartlet are aborted before sending the new ajax request to the server.

Javascript CopyCode image Copy Code
sml.ajax({
    abortPrevious: true,
    busy: true,
 
    ready: function(){
       var s = sml.get('data');
       jQ.find(".tweets").html(s).slideDown();
    }
});

Setting the abortPrevious property to true is functionally equivalent to calling sml.abort() prior to sending a new request.