I want to get the percentage value of an ajax request from an external server. How to do?
$("#uptade_space_disk").click(function(){
var url = "/calcular-espaco-em-disco"
jQuery.ajax({
url: url,
dataType: 'script',
beforeSend: function() {
$("#loader").show();
$("#uptade_space_disk").hide();
},
success: function() {
},
error: function() {
}
});
})