Galera,
I have a page in PHP that does a query in the database at the end of the processing and I show the amount of updated records. This process takes a while, in my Jquery I just show the total of affected records, how could I change my Jquery to show from time to time, in case every 1 second it shows the user the amount of records. >
EDIT: ATTENTION I can not keep calling the PHP page several times, I need to call it once and listen to it or receive data from it!
var form_data = new FormData();
form_data.append('id', idSel);
$.ajax({
url: 'postar_reenvio.php', // caminho para o script que vai processar os dados
type: 'POST',
data: form_data,
cache: false,
contentType: false,
processData: false,
beforeSend: function () {
$('.resp').html("<img src='images/spin.gif' alt='Notificação' height='70' width='70'/> <br>Enviando Mensagens, aguarde!");
},
success: function(response) {