jquery - How do I load a PHP page after the page has fully loaded? -



jquery - How do I load a PHP page after the page has fully loaded? -

i relatively new working php , more jquery, please excuse lack of knowledge :3

i trying load little html table has php info have queried game servers so.

except... creates quite big loading time page, , wondering if there way load html page, display "loading..." sort of text , load php table separate file. php/html table can found here.

so sum up, if possible, page says "loading..." (or of sort) , 1 time entire html page has been loaded, table of servers appear. i hope have provided relevant info , if more required please inquire below, help appreciated! again, please excuse lack of knowledge relatively new of this!thanks in advance!

create php file "yourtablefile.php" with, example

<table> <?php foreach ($toto $tutu) echo "<tr><td>" . $tutu . "</td></tr>"; ?> </table>

and in first page set script

<script> $(function() { $('#myslowtable').load("yourtablefile.php"); }); </script>

then, want show :

<div id="myslowtable"> loading image here </div>

php jquery html css querying

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -