load - Can php divide the page into small block and gradually appear? -


can php divide page small block , gradually appear? divided main page several small blocks, like:

<?php  include('header.php'); <div id="content"> <!-- content --> </div> include('partone.php'); include('parttwo.php'); include('partthree.php'); include('footer.php'); ?> 

i need open page, first load header.php, div#content, footer.php, gradually loaded partone.php, parttwo.php, partthree.php. there way that? thanks.

modify code following

<?php  include('header.php'); ?> <div id="content"> <!-- content --> </div> <div id="partone"></div> <div id="parttwo"></div> <div id="partthree"></div> <?php include('footer.php'); ?> 

then make 3 ajax requests load in partone.php, parttwo.php , partthree.php respecitve divs in above code. plenty of tutorials on how via different javascript frameworks out there. use jquery, can use whatever preference this.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -