Say I have something like this:
<div>
<? require_once('include.php'); ?>
</div>
Is there any way to have a loading animation until an included php script loads?
Thanks
Say I have something like this:
<div>
<? require_once('include.php'); ?>
</div>
Is there any way to have a loading animation until an included php script loads?
Thanks
PHP scripts don't "load", they're included on the server side and the user gets the final output of them. You need to read about the difference between server-side scripts and the client-side scripts.
Please see this link, it has what you need: Animated loading + Jquery with detailed instructions and explanations.
How can I create a "Please Wait, Loading..." animation using jQuery?
This can be done using ajax load method , in the client side :
$("div#hisId").slideUp("slow").load('include.php').slideDown("slow");