Hello, Can any one help me on infinitescroll widget, for getting current page number. so when any user come back to this page I can "preload" those content which are loaded previously. When user click on load more content it will fire ajax request with, ohboysports.com/?page=2. so once user browse this page and come back again I have to preload those content with number page = 2.
Currently user has to click on load more content again when they browse this page again.
My code is as below,
<?php
$this->widget(‘zii.widgets.CListView’, array(
‘id’ => ‘SubmissionList’,
‘dataProvider’ => $thirdtierrecords,
‘itemView’ => ‘_view’,
‘emptyText’ => ‘Coming Soon’,
‘template’ => ‘{items} {pager}’,
‘pager’ => array(
‘class’ => ‘ext.infiniteScroll.IasPager’,
‘rowSelector’ => ‘.nodlt’,
‘listViewId’ => ‘SubmissionList’,
‘header’ => ‘’,
‘loaderText’ => ‘Loading…’,
‘options’ => array(
‘onRenderComplete’ => “js:function (items) { /init_addthis();/ createSwingEffect();}”,
‘history’ => false, ‘triggerPageTreshold’ => 1, ‘trigger’ => ‘Load more’),
),)
);
?>