This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
kevin.vermeulen
Hi,
On the homepage I use the Rainlab.blog component to show 2 row with each 3 posts. It generate automatic a pagination. Is there any possibility use a function of AJAX?
If you click on the pagination (2th), you will still on the same page and the next 6 post will scroll from right to left.
Any help is welcome!
juancarlos3706
Something like this:
$('wrapper').on('click', '.pagination a', function (event) {
var page = $(this).text();
event.preventDefault();
if ($(this).attr('href') != '#') {
$("html, body").animate({scrollTop: 0}, "fast");
$.request('onPartialPagination', {
data: {page: page},
update: {'component::_partial': '#selector'}
});
}
});
1-2 of 2