javascript - How to implement load previous items like infinite ajax scroll history example -


currently i'm trying use infinite ajax scroll function posts.

here want make link load previous items implemented on infinite ajax scroll history example here: http://infiniteajaxscroll.com/examples/history/page3.html (see load more items above content.)

my code:

javascript:

<script type="text/javascript">     var ias = jquery.ias({         container: '#posts',         item: '.post',         pagination: '#pagination',         next: '.next'     });      ias.extension(new iasspinnerextension({src: 'ajax-loader.gif'}));     ias.extension(new iastriggerextension({offset: 2}));     ias.extension(new iaspagingextension());     ias.extension(new iashistoryextension({prev: '.prev a'})); </script> 

html markup

<div id="posts">     <div class="post">...</div>     <div class="post">...</div> </div>  <div id="pagination">     <a href="/page2/" class="next">next</a> </div> 

i have tried jquery.ias().prev(); method have no clear documentation impelement this.
know wrong code? thank you!


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -