Monday 30 July 2012

jquery autopager with PHP (Like FaceBook Page Loader)

Hi Dears,

Last few days ago, I was looking for some jquery tips, auto-loaded contents like facebook auto contents loading when we scroll down on page. I found some and let share with you.

Today, my tutorials is based on this tutorials. Actually this tutorials is done by ASP page. I will present how to used for PHP and adding some. Create Database with one table something like following.


Insert data in table as much as possible because later we have to scroll down on page



Let's support, we have two conditions. When we load page first time, take initial data from Database with starting zero offset. And second time and next times scrolling page with Query String url, the result will be come out depending on he last ID. Create PHP page named site.php.



Now we have to separate two part,first contents and the rest contents when scroll 
down page loading. First time load page with site.php without Query String for  
initial contents. Second time with jquery post method using with scroll down 
function.
Create html file.

jquery.dimensions.pack.js


No comments:

Post a Comment