encode date/view in URL fragment, so back button works
See original GitHub issueOriginally reported on Google Code with ID 388
I have a working example of supporting the back button fully by updating
the hash tag of window.location (window.location.hash). I'm using a couple
of things to make this possible:
- fullcalendar viewDisplay callback
- jQuery hashChange event plugin (see 1)
- Datejs (see 2)
- and some javascript to pull it all together and use hash tags like #week-
10-2010, #day-71-2010, or #month-3-2010
I'll document this on my blog but I suspect I am doing some things
inefficiently (if I was more familiar with the fullcalendar source, I could
probably get rid of Datejs) and it seems like something that people would
commonly need.
I'll update this once I get my blog post in but feedback on whether it is
desired or not would be great...
(1) http://benalman.com/code/projects/jquery-hashchange/docs/files/jquery-
ba-hashchange-js.html
(2) http://www.datejs.com/
Reported by cymenvig
on 2010-03-11 18:16:37
Imported with 18 stars.
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Detecting Back Button/Hash Change in URL - Stack Overflow
It loads all the pages using AJAX - I have it set up to allow bookmarking by detecting the hash in the URL....
Read more >Dao De Web (or: The Painful History of the URL) | Smellegant Code
The URL tells the application which room to display, and so the user can: Press the Back button to go back to the...
Read more >JavaScript Event Calendar - FullCalendar
Provide default innerContent in eventContent so it can be wrapped. 26. List view, custom columns ... encode date/view in URL fragment, so back...
Read more >URI fragment - Wikipedia
The fragment identifier introduced by a hash mark # is the optional last part of a URL for a document. It is typically...
Read more >HTML Standard
If the element is being added by script, then so long as the event handlers are ... For example, the following markup fragment...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just to be completely explicit, this works:
It’s been for a long time. Is anybody working on the issue?