Yii Framework Forum: Yiinfinite-scroll - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yiinfinite-scroll Rate Topic: -----

#1 User is offline   davi_alexandre 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 104
  • Joined: 08-July 09
  • Location:Guarulhos - São Paulo

Posted 27 December 2010 - 08:18 PM

Hi,

I just created a pager extension called Yiinfinite-scroll:

http://www.yiiframew...nfinite-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.
0

#2 User is offline   davi_alexandre 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 104
  • Joined: 08-July 09
  • Location:Guarulhos - São Paulo

Posted 27 December 2010 - 08:20 PM

Ah, you can see a demo here:

http://davialexandre...nfinite-scroll/

Also, the project is hosted at github, so feel free to contribute with anything ;)

https://github.com/d...infinite-scroll
0

#3 User is offline   Gautam Mahato 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 05-January 11
  • Location:Kathmandu

Posted 22 February 2011 - 02:18 AM

thanks for the extension. I am getting problem to implement this extension. First,
$this->widget('ext.yiinfinite-scroll.YiinfiniteScroller', array(
'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.
0

#4 User is offline   jowen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 191
  • Joined: 13-July 11
  • Location:Malaysia

Posted 05 December 2011 - 11:40 PM

Hi davi_alexandre,

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
0

#5 User is offline   Rathan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 12-March 12

Posted 12 March 2012 - 12:51 AM

Hi davi

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
0

#6 User is offline   Mustafa Abu Ghali 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-April 12

Posted 08 April 2012 - 03:41 PM

Dear davi_alexandre,

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

<?php
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); ?>" >

</div>


thanks,

Mustafa Abu Ghali
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users