0
How to make a loading screen that waits for a period of X seconds to do a certain action. Ex: Running a Query
in the database...
Ex:
<?php
$outTime = 1000; // tempo em ms
...
?>
<div id="splash">Aguarde...</div>
<div id="conteudo">Sucesso!</div>
you use jquery in your application?
– Hiago Souza
no. is pure php!
– FRNathan13
php is synchronized and runs on the server side or is http, the response is rendered only after the partial or full document download. The operation you want should be done on the front end. Something else
int outTime
is not PHP.– Guilherme Nascimento
It’s like I run
function a() { return "teclaA"; }
and he waits a time in X seconds to perform the action.– FRNathan13
It’s just so you don’t charge everything directly.
– FRNathan13
Then @Nathan1302 php does not manipulate the DOM at the moment it is in the Browser (because PHP is a language that runs on servers, unlike javascript)! You might consider doing this with jQuery, making a call via ajax.
– Hiago Souza
ah ta! I thought the gift was manipulated also by the same!
– FRNathan13
And in the case of jquery as it would be?
– FRNathan13
related question Monitor PHP script processing
– Pedro Sanção