I have a php page index.php that loads another php page page.php with a load ():
$("#div").load('pagina.php');
On this page I have a For loop with a lengthy sql and I have to show the progress of this query. The problem is that this page is only loaded into the div after the query ends.
Is there a way for me to bring a load with the database progress of the page.php page into that javascript that loads before on the index.php page? For example:
$('#div').html("Carregando...");
$("#div").load('pagina.php');
But instead of the "Loading" message, I need to show some progress.
Thank you.