Answer the question
In order to leave comments, you need to log in
How to send an ajax request without waiting for a response?
I have an API request via ajax
datas = {
domen: 'xxxx',
username: 'xxxx',
password: 'xxxx',
api: 'xxxxx',
}
$.ajax({
url: 'xxxxx',
type: 'POST',
dataType: 'JSON',
async: false,
data: {
result: JSON.stringify(datas)
},
success: function(response) {
console.log(response);
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question