News for hackers. Stuff that matters.
Re:Breaking the web with hash-bangs by antimatter15 on Wednesday February 09, 2011 @02:01AM (#2196701)
I was building an app that used pushState/replaceState recently instead of the hash bang syntax, but getting content navigation isn't easy. For example, when attaching the event handler to the links, you have to be careful not to make it trigger on middle or right clicks and you have to keep track of the scroll state so going back keeps the same behavior and also to take a copy of the previous selected text. Without all of that, intra-page navigation feels unnatural and uncanny.
Re:Breaking the web with hash-bangs by strager on Wednesday February 09, 2011 @11:00AM (#2197859)
Good points, but it seems some of that (scrolling, selection, form data, etc.) should be left to the browsers to fix/implement/deal with. Granted, it is a really bad user experience.

Seems like this should be made a JS library in the meantime. (Hint, hint. =])

Re:Breaking the web with hash-bangs by mcantor on Wednesday February 09, 2011 @10:11AM (#2197618)
HTML5 pushState/replaceState is the "correct" way to do this for compliant browsers, though... right?