Ajax загрузка страниц вместо пагинации

Плагин jQuery для динамической загрузки айтемов (материалов) вместо пагинации.

Вместо блока с пагинацией появится кнопка "загрузить ещё", либо при скролле автоматически будет добавляться заданное количество айтемов.

Есть готовый плагин: http://infiniteajaxscroll.com/ скачиваем и подключаем.

Для Zoo, например, код вызова плагина будет примерно такой:

<script>
  jQuery.ias({
    container   : ".items",
        // Enter the selector of the element containing
        // your items that you want to paginate.
  
    item    : ".width50",
      // Enter the selector of the element that each
      // item has. Make sure the elements are inside
      // the container element.
  
    pagination  : ".pagination",
      // 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    : "a.next",
      // 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.
  });
  </script>

Селекторы могут отличаться, Например, вместо ".width50" может быть другой класс айтема.

Ссылки и благодарности

Увидел на forum.jbzoo.com