CodeIgniter Forums
Infinite Scroll problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Infinite Scroll problem (/thread-54128.html)



Infinite Scroll problem - El Forum - 08-23-2012

[eluser]amalik[/eluser]
Hi All,
I am using pagination to display my posts and its working fine but when I try to use infinite scroll it dont work Sad. I am using codeigniter pagination class and masonry infinite scroll. I am using the code given below to specify my pagination div

Code:
$container.infinitescroll({
  navSelector  : '.pagination01',    // selector for the paged navigation
  nextSelector : '.pagination01 a',  // selector for the NEXT link (to page 2)
  itemSelector : '.box',     // selector for all items you'll retrieve

  loading: {
      finishedMsg: 'No more pages to load.',
      img: 'http://i.imgur.com/6RMhx.gif'
   }


and the code given below to display my pagination

Code:
<div class="pagination01">
   &lt;?php echo $pagination; ?&gt;  
</div>


but because of some reason its not working I also tried

Code:
$config['display_pages'] = FALSE;
$config['first_link'] = FALSE;
$config['last_link'] = FALSE;
$config['prev_link'] = FALSE;
$config['next_link'] = '';

to get hidden next page link but its still not working. When I try

Code:
<div class="pagination01">
  
   <a href="http://www.mywebsite.com/page/posts/20"></a>
  
</div>

I get it to work but just for the next 20 posts and then it dont work Sad. I tried almost every thing to make it work but nothing seems to be working. I will really appreciate if some one would be able to help me.

Thanks in advance.

am


Infinite Scroll problem - El Forum - 08-24-2012

[eluser]vitoco[/eluser]
Dou you have a demo to see?