Comments on: More on Really Simple History http://mattsnider.com/languages/javascript/more-on-really-simple-history/ Understanding JavaScript and Frameworks Mon, 13 Oct 2008 18:59:31 +0000 http://wordpress.org/?v=2.1.2 By: Brian Dillard http://mattsnider.com/languages/javascript/more-on-really-simple-history/#comment-893 Brian Dillard Mon, 22 Oct 2007 22:00:26 +0000 http://mattsnider.com/languages/javascript/more-on-really-simple-history/#comment-893 Matt, thanks for the great post on RSH. I am the new maintainer of the library and am about to release a beta of the 0.5 version. I am puzzled by one aspect of your revisions, and I'm wondering whether you can explain. The reason RSH 0.4 uses document.write to create its hidden textarea is that this causes the textarea to exist in the DOM when the page is loaded, even when it's loaded from the cache. This means that you can navigate through your RSH-enabled application, then navigate to a different site, and then use your back button to navigate back. When you land back within your own app, all of your history will be preserved. I tried going down a path similar to yours but found that adding the textarea after DOM loaded caused all values saved to that textarea to get hosed when you navigated away and back. Did you find a way around this problem, or were you only testing your solution while staying within your own app? I'd love to get away from document.write if possible, but my 0.5 beta is going to include it for now. Matt, thanks for the great post on RSH. I am the new maintainer of the library and am about to release a beta of the 0.5 version. I am puzzled by one aspect of your revisions, and I’m wondering whether you can explain. The reason RSH 0.4 uses document.write to create its hidden textarea is that this causes the textarea to exist in the DOM when the page is loaded, even when it’s loaded from the cache. This means that you can navigate through your RSH-enabled application, then navigate to a different site, and then use your back button to navigate back. When you land back within your own app, all of your history will be preserved. I tried going down a path similar to yours but found that adding the textarea after DOM loaded caused all values saved to that textarea to get hosed when you navigated away and back. Did you find a way around this problem, or were you only testing your solution while staying within your own app? I’d love to get away from document.write if possible, but my 0.5 beta is going to include it for now.

]]>
By: News: Really Simple History | Matt Snider JavaScript Resource http://mattsnider.com/languages/javascript/more-on-really-simple-history/#comment-955 News: Really Simple History | Matt Snider JavaScript Resource Wed, 24 Oct 2007 21:08:24 +0000 http://mattsnider.com/languages/javascript/more-on-really-simple-history/#comment-955 [...] More on Really Simple History [...] […] More on Really Simple History […]

]]>