Extension Inifinite-Scroll-Pager

Not showing the next pages

When I scroll the page, its showing only the page 1, its not showing the next 2nd or 3rd pages. But in address bar the page no is changing to 2 and 3. The pagination is not showing. Please help.

Same here. I will try to show better what I have.

In the controller:

public function actionIndex()


	$count=Yii::app()->db->createCommand("SELECT count(*) from posts where authorid = 1")->queryScalar();

	$sql="SELECT * FROM posts WHERE authorid = 1";


	$dataProvider= new CSqlDataProvider($sql, array(



	    'keyField' => 'postid',














(with simplefied sql)

and in the view file


$this->widget('zii.widgets.CListView', array(

    'id' => 'dashstream',



    'template'=>'{items} {pager}',

   	'pager' => array(

                'class' => 'ext.infiniteScroll.IasPager', 


                'listViewId' => 'dashstream', 

                'header' => ''





If I remove the pager part, ‘manual’ pagination works just fine. With the pager part, the url in the browser URI bar is changing to the higher pages, communication with the server can be seen (read [05/Jan/2013:19:37:22 +0100] “GET /dashboard/index?dashstream_page=5 HTTP/1.1” 200 2955 “http://domain.com/dashboard” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/11.10 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19”) but new lines do not appear.

Help is very much appreciated!

Maybe it’s a bit late but I had the same problem and solved it by changing the

'rowSelector' => '.row',

parameter. “.row” must be the name of the class of the html tag that you’re using to wrap the _dashstream.php itemView’s contents. This and making the browser’s window smaller / paging bigger to trigger the code did the trick

Sorry for my English.

I had a similar problem.

The reason is that ias.js can not find the url of the next page:

$ ('#dashstream. next a', data). attr ('href')

This selector does not work if the data contains

<div id='#dashstream'> ... </ div>

"data" - is the contents of the next page

it must be wrapped in an extra div:

<div> <div id='#dashstream'> ... </ div> </ div>