4
It can show a message like: "Loading..." while my ajax does the operation?
AJAX
$.ajax({
url: url,
type: 'GET',
dataType: 'json',
success: function(data) {
console.log("sucesso");
},
error: function() {
console.log("erro");
}
});
like, before entering the success: function(data){}
show a downloader or an msg
@Silvioandorinha, also take a look at this other solution :) However, your answer also responds well to the request!
– CesarMiguel
Yes, really. I didn’t know that
beforeSend
is that as I always use the$.post
instead of$.ajax
I do it the first way, for no $.post has thatbeforeSend
+1
– Silvio Andorinha