Posted 27 December 2010 - 08:18 PM
I just created a pager extension called Yiinfinite-scroll:
Basicaly, what it does is auto load more items as you scroll down the page, as in Twitter. The usage is pretty much the same as CListPager or CLinkPager.
Hope you find it useful to your projects
Please tell me if you find problem with it or need any help.
Posted 22 February 2011 - 02:18 AM
'itemSelector' => 'div.post',
'pages' => $pages,
In this div.post signifies what? and one more thing does this show the result with autoscrolling or i have to use CListView to display the result.
I am also getting the error path.join is not a function in firebug.
Posted 05 December 2011 - 11:40 PM
I follow the Yiinfinite Scroll Extension. but why the my Yiinfinite Scroll Extension don't have the JQuery effect?? It only show the result and a next page link at the bottom. Why this happens? i need add on what stuff inside
Posted 12 March 2012 - 12:51 AM
Im a newbee both to PHP and Yii ..
We need this extension to be implemented in one of our code
Can I know if this page iterates the data ..as you said it is infinite scroll
If my db has 100 comments..then would this stop at that point or continues to loop the
data giving my 1st comment again as 101th comment.
Pls reply ..thanks in advance
Posted 08 April 2012 - 03:41 PM
The extension is really great thanks a lot.
I'm trying to use the ajaxLink inside the view but it is working for the first n items only and not working on the rest, can you give a hint how i can fix this issue.
belwo is the code inside the _view
echo CHtml::ajaxLink("Load more...", Yii::app()->createUrl("Images/ajax&id=" .CHtml::encode($data->adv_id)),array("update" => "#" . CHtml::encode($data->adv_id),)); always showing the first item.
<div id="<?php echo CHtml::encode($data->adv_id); ?>" >
Mustafa Abu Ghali