How gmail saves checkboxes from page to page

in gmail, if you check email 4, then go to another set of 50 or 25 entries and mark 26, while 4 and 26 are saved if you move back and forth.

How does google do it?

it would be possible to do something like this on a page that contains only 50 records and when you press NEXT ... it again goes to the database to bring the next set of 50 records.

+6
javascript pagination gmail
source share
3 answers

You do not technically change the pages, this is the same page, the content is simply changed dynamically using JavaScript.

+8
source share

Look carefully at the URL. Only the hash part changes. This means that you are not loading new pages when you click on things in Gmail. They just change the elements shown to you using javascript.

A similar thing can be done when loading pages, if you use localStorage or sessionStorage

You can make the page that you describe using Ajax methods.

+4
source share

Internal pages are most likely loaded using AJAX. It seems like iFrames, you track the links that are clicked, and only download the inside of what you are doing so that you don’t download things twice ...

Perhaps they are stored in JavaScript or in Cookies ... I would probably save them as a set of selected JavaScript checkboxes personally ... depending on how much download you already provide to the user.

+1
source share

All Articles