Answer the question
In order to leave comments, you need to log in
How does email navigation work in Gmail?
In the Gmail web interface, email navigation is done as follows:
Initially, we are on the Inbox page
https://mail.google.com/mail/?hl=ru&shva=1#inbox
https://mail.google.com/mail/?hl=ru&shva=1#inbox/12c4911509040a02
Answer the question
In order to leave comments, you need to log in
for learning e.g. developer.yahoo.com/yui/3/history/ and developer.yahoo.com/yui/history/
GWT
has facilities for assigning handlers to different history tokens (the one after the #).
http://examples.roughian.com/index.htm#Tutorials~History_Support
Not sure, but I suspect that gmail is also on GWT.
A timer that scans the URL and generates the necessary events. There is no url change event in the browser.
The back button is serviced by the browser itself when the url changes.
>> In reality, the letter is first opened, and then, according to the event, a certain anchor is put down
How do you explain then that if there is an open letter. We copy the url like https://mail.google.com/mail/?shva=1#inbox/19c8764cb4a704af, paste it in another tab, and the letter opens again. That is, the content depends on the url, and not vice versa.
Also, if you look at the menu on the left: there are just links: https://mail.google.com/mail/?shva=1#inbox, https://mail.google.com/mail/?shva=1#mbox, https ://mail.google.com/mail/?shva=1#starred, etc... But after clicking on this link in the bowels of GWT, the url change handler is triggered, the handler corresponding to the token (inbox/mbox/starred) is pulled , and the handler renders the desired content.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question