![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 13.05.2012 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
korzystam z tego - https://github.com/webcreate/infinite-ajax-scroll Raczej staram się korzystać, wypełniłem poprawnie ten kawałek, mam na stronie paginację. Kod jQuery.ias({ container : '.listing', item: '.post', pagination: '#content .navigation', next: '.next-posts a', loader: '<img src="images/loader.gif"/>' }); W sekcji head wrzuciłem - Jednak nie wiem jak wywołać cały ten skrypt, bo pewnie samo z siebie nic działać nie będzie. Ten post edytował Torowisko 14.05.2012, 13:19:02 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 709 Pomógł: 176 Dołączył: 24.10.2010 Ostrzeżenie: (0%) ![]() ![]() |
kluczowy fragment z dokumentacji:
Cytat Default: “.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. Make sure there is only one(1) element that matches the selector. Czyli musisz wskazać element który będzie źródłem adresu skąd pobrać następne elementy skrypt sam pobierze adres i wykona zapytanie o kolejną porcję danych. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 14:44 |