Re:Show HN: My first webapp. Build with rails, backbonejs an...
by benelsen on Wednesday August 08, 2012 @06:24AM
(#4354811)
Very nice.
Here’s just a small thing I’d change:
You update the url using backbones router.navigate, right?
If you pass {replace: true} in the options object, the browser won’t create a new entry in the history as it does right now but still update the URL.
http://documentcloud.github.com/backbone/#Router-navigate
[ Parent
| on HN ]
Re:Show HN: My first webapp. Build with rails, backbonejs an...
by muellerwolfram on Wednesday August 08, 2012 @06:53AM
(#4354889)
yes, exactly, that's how i do it. maybe i'm missing something, but why do you suggest not making an entry in the history?
Re:Show HN: My first webapp. Build with rails, backbonejs an...
by burriko on Wednesday August 08, 2012 @07:17AM
(#4354951)
The user is scrolling one long page, not navigating between 'pages'. Having entries inserted into the history while scrolling seems very counter-intuitive to me.
Re:Show HN: My first webapp. Build with rails, backbonejs an...
by muellerwolfram on Wednesday August 08, 2012 @07:33AM
(#4354991)
mh yes that makes sense.
i think the reason why i did this, was because initially the preview und market links didn't open in a new window. but you're right, if the user is staying on one page, he doesnt need a 'back' functionality.
thanks for the feedback, i already changed it, going to push it later...