Change current page via jQuery


Active member
I want to code a ajax threads loading when user scrolls in a node, i can send ajax request and get needed threads. When threads are loaded we need change current page in "PageNav". There are 2 ways:
1. Change current page via jQuery
2. get pageNavParams from request, render it as template and replace current page navigation

I like first way, because we will get less content, than in 2 way. I think it is possible