2

I know the backend detail,that it works using long polling. I am more interested in knowing how the sidebar is persistent through different pages.

The sidebar is not being loaded again,when a new link is created.How could this be implemented.

elricL
  • 1,148
  • 2
  • 11
  • 19

1 Answers1

3

You can handle the link clicks with Javascript. Once you get a click, you would only change the main content (whatever the main div or block is) and keep the sidebar intact. So, it's kind of like "pseudo-links." I don't think you actually go to another page, but the content of the current page is changed.

Handling URL change with Javascript.

How to change the URL in the browser. (Facebook changes the address bar URL without actually loading the page.)

Community
  • 1
  • 1