1

I have a PHP application which will display articles from the database tables but I don't want to use pagination rather when user scroll down it should load new articles and so on. Just like Google/Facebook does.

Any idea how to achieve this?

2

2 Answers 2

3

This is the best infinite scroll out there, as it works with your pagination.This is the Link

7
  • Im using it, for reference see www.courseworld.org. If you have alreday done paginaion for your page, it will be a 5min job to integrate it.
    – Nil'z
    Oct 9, 2013 at 9:38
  • No I don't have pagination, I want to avoid it as it is out fashioned nowadays. Isn't it? Oct 9, 2013 at 9:54
  • Nope, you got me wrong friend, It will just convert your already done pagination to scrolling automatically with some customizations. See this link for example http://www.courseworld.org/home/view_category/2/55/131 :D
    – Nil'z
    Oct 9, 2013 at 9:55
  • I downloaded their sourcecode, opened their demo file and when I scroll the page am getting javascript error: Uncaught TypeError: Object function (e,t){return new b.fn.init(e,t,r)} has no method 'ias' any idea? Oct 9, 2013 at 9:56
  • Everything is there, and about your error, run the files in localhost not directly. see this link http://www.courseworld.org/home/view_category/2/55/131.
    – Nil'z
    Oct 9, 2013 at 9:58
3

http://api.jquery.com/scroll/

handle the scroll event, make an ajax call to a php file that will send back a json or a html string to append directly, animate it a bit to make it look smooth

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.