(no title)
pleion | 12 years ago
As for the hash, the original reason why I went with hash= was to preserve back and forward, but I guess that might not be so necessary considering I have undo and redo.
I know that my clutter can be a bit obnoxious, but just changing it to window.replace(hash) breaks a few other things, so it's left the way it is for now.
There is probably some HTML5 history API way to do it that lets me have back and forward without saving every history entry, I'll look into it.
schiffern|12 years ago
Do you mean the Back & Forward buttons in the browser?
If you can go back/forward to different states, why wouldn't those show up as history entries? I don't think you can decouple the displayed "history" drop-down list from the behavior of the back/forward buttons (for reasons that are probably obvious).
http://html5doctor.com/history-api/
jmilkbal|12 years ago
pleion|12 years ago
There are lots of libraries that could have made things more convenient. But a big part of this project was to learn as much as I could about coding, and the browser as an environment, so early on I committed to writing everything myself.
I'd be interested in hearing whether or not other people think this is a good strategy for self teaching.