jquery-infinite-scroll

infinite-scroll jquery plugin

可紊 提交于 2019-12-17 06:59:07
问题 I am trying to set up infinite-scroll on a site I am developing with Coldfusion, I am new to javascript and jquery so I am having some issues wrapping my head around all of this. Do I need to have pagination on my site in order to use the infinite-scroll plugin, or is there a way to do it with out it? 回答1: You do not need infinite scroll plug-in for this. To detect when scroll reaches end of page, with jQuery you can do $(window).scroll(function () { if ($(window).scrollTop() >= $(document)

Infinite scroll jquery plugin in codeigniter

人盡茶涼 提交于 2019-11-30 00:03:28
问题 I have a pagination.php file in the config folder. the code is below $config['num_links'] = 5; $config['use_page_numbers'] = TRUE; $config['query_string_segment'] = 'page'; $config['full_tag_open'] = '<div class="pagination"><ul>'; $config['full_tag_close'] = '</ul></div>'; $config['first_link'] = '« First'; $config['first_tag_open'] = '<li class="prev page">'; $config['first_tag_close'] = '</li>'; $config['last_link'] = 'Last »'; $config['last_tag_open'] = '<li class="next page">'; $config[

infinite-scroll jquery plugin

家住魔仙堡 提交于 2019-11-27 02:36:23
I am trying to set up infinite-scroll on a site I am developing with Coldfusion, I am new to javascript and jquery so I am having some issues wrapping my head around all of this. Do I need to have pagination on my site in order to use the infinite-scroll plugin, or is there a way to do it with out it? Hussein You do not need infinite scroll plug-in for this. To detect when scroll reaches end of page, with jQuery you can do $(window).scroll(function () { if ($(window).scrollTop() >= $(document).height() - $(window).height() - 10) { //Add something at the end of the page } }); Demo on JsFiddle I