Upload more results like facebook / twitter

You may have seen this effect on Facebook / Twitter. I want to upload more results and add them to existing ones. There are no problems so far. How can I track how many results I have, find out where the next time?

I have some answers:

  • Wrap the results in a div with id, results1, results 2 ... and then get the last id and multiply it by the number of results in the container

  • Store the number in a variable, reset, every time a list is requested after you come from another page.

+4
source share
1 answer

Take a look at this.

It worked for me.

http://youhack.me/2010/05/14/an-alternative-to-pagination-facebook-and-twitter-style/

I am just sending a link, not an answer, because you can go through the code and be able to solve the problem yourself.

+7
source

Source: https://habr.com/ru/post/1369390/


All Articles