Infinite scrolling within ajax-loaded page

后端 未结 4 497
感动是毒
感动是毒 2021-01-03 09:43

I have a page(let\'s call it 1.php) that loads 2.php into a div-box using jQuery-ajax. 2.php prints 20 records from my database. When I reach the bottom of the div-box when

4条回答
  •  臣服心动
    2021-01-03 10:38

    File 1.php should output this:

    If you want to send the iteration number to 2.php you could remember it in some hidden input and send it as argument to $.get().

    Hope it helps.

提交回复
热议问题