jquery - Getting ias working with ajax + pods in Wordpress -


so want infinite scroll (http://infiniteajaxscroll.com/) work html part is:

 <div id="pagination"> <span class="pods-pagination-paginate "> <span class="page-numbers current">1</span> <a class="page-numbers" href="?action=search_speaker&amp;sort=az&amp;pg=2">2</a> <a class="page-numbers" href="?action=search_speaker&amp;sort=az&amp;pg=3">3</a> <a class="next page-numbers" href="?action=search_speaker&amp;sort=az&amp;pg=2">next ›</a> </span> </div> <div class="wrapper-pane clearfix"> <div class="pane"></div> <div class="pane"></div> <div class="pane"></div> <div class="pane"></div> </div> 

the js code is:

   var ias = jquery.ias({  container: ".wrapper-pane",  item: ".pane",  pagination: ".pods-pagination-paginate",  next: ".next a", }); ias.extension(new iastriggerextension({offset: 2,text: 'load more items'})); ias.extension(new iasspinnerextension());   ias.extension(new iasnoneleftextension({   text: 'there no more pages left load.' })); 

so problem there no infinite scroll. tried debug bit .on('ready',function(){alert("its loaded");}); worked fine after tried same scroll or next these alerts wouldn't show up. think maybe ias can't recognize user scrolling? there better way debug ias?


Comments