Answers for "ajax beforesend"

2

ajax beforesend

beforeSend: function() {
        // setting a timeout
        $(placeholder).addClass('loading');
    },
Posted by: Guest on July-11-2021
0

jquery abort ajax

var xhr = $.ajax({
    type: "GET",
    url: "https://www.codegrepper.com/myapi.php",
    success: function(response){
       //do something
    }
});

xhr.abort(); //kill the request
Posted by: Guest on July-23-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language