CodeIgniter Forums
Infinite Scroll problem - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Infinite Scroll problem (/thread-54128.html)

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

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

  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: ''

and the code given below to display my pagination

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

but because of some reason its not working I also tried

$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

<div class="pagination01">
   <a href=""></a>

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.


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

Dou you have a demo to see?