Infinite Ajax Scroll, a jQuery plugin

I am proud to announce my first official open-source jQuery plugin release. Infinite Ajax Scroll is a plugin that turns you existing pagination into an infinite scrolling one, with ease.
Features
- Infinite scrolling increases usability for you visitors, by removing an extra click
- Increase average time spent on your website by visitors
- Graceful degration for browsers without JavaScript
- Allows for multiple instances, like for posts and comments
- Easy to implement
- Clearly coded and well documented
- Similar technique as seen on Twitter, Facebook, Google Reader and many more…
How it works
After you have installed IAS you have to define a few regions of your webpage.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
jQuery.ias({ container : ".listing", // Enter the selector of the element containing // your items that you want to paginate. item : ".post", // Enter the selector of the element that each // item has. Make sure the elements are inside // the container element. pagination : "#content .navigation", // Enter the selector of the element that contains // your regular pagination links, like next, // previous and the page numbers. This element // will be hidden when IAS loads. next : ".next-posts a", // Enter the selector of the link element that // links to the next page. The href attribute // of this element will be used to get the items // from the next page. loader : "images/loader.gif" // Enter the url to the loader image. This image // will be displayed when the next page with items // is loaded via AJAX. }); |
IAS will now handle your webpage as follows:
- Monitor the scroll event for reaching the last item element
- Insert a loader image
- Load the next page using AJAX
- Insert each new item after the last item
You can check out a working example on the frontpage of my website.
For more information about the plugin, like installation instructions, requirements, issues etc. check out Infinite Ajax Scroll on Github.
Happy scrolling!
About Jeroen Fiege
Jeroen Fiege is a PHP webdeveloper and founder of Webcreate. Follow him on Twitter at @fieg.
-
Varun Mishra
-
Anonymous
-
Varun
-
http://todayinwebdesign.com/2011/08/jquery-loader-progress-bar-and-content-animations/ Today in Web Design » jQuery Loader, Progress Bar and Content Animations
-
Kostia
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
http://www.kabytes.com/programacion/scroll-infinito-ajax-con-jquery/ Scroll infinito AJAX con jQuery | Kabytes
-
http://www.tuniwebtricks.com/jquery/infinite-ajax-scroll-defilement-infinie-de-vos-pages-en-quelques-lignes-de-code/ Infinite Ajax Scroll défilement infinie de vos pages en quelques lignes de code : TuniWebTricks
-
http://blog.educacionit.com/2011/12/13/como-hacer-un-scroll-infinito-con-jquery-y-ajax/ Cómo hacer un scroll infinito con JQuery y Ajax | Blog de EducacionIT – Cursos y Formacion Profesional IT
-
http://rockingcode.com/misc/have-you-seen-these-30-ajax-plugins-before/ Have You Seen These 30 Ajax Plugins Before? | RockingCode
-
http://webhelp101.com/2012/01/22/have-you-seen-these-30-ajax-plugins-before/ Have You Seen These 30 Ajax Plugins Before? | Web Help 101
-
Bosmamultimedia
-
Anonymous
-
Saschaoost
-
Saschaoost
-
Anonymous
-
Ian Lipsky
-
Anonymous
-
Anonymous
-
Anonymous
-
Anonymous
-
Snatch182


