News for hackers. Stuff that matters.
Re:Show HN: garlic.js - don't let your users lose their form... by benschwarz on Saturday November 10, 2012 @06:11PM (#4768098)
IE8 supports both local and sessionStorage.

Which leads me to an aside — Why did you choose localStorage over sessionStorage?

For those who don't know — local/session are the same, only session will be cleared when the browser is closed.

My browser already auto completes form data… so I'm not sure I'd need it between sessions.

Re:Show HN: garlic.js - don't let your users lose their form... by mh- on Saturday November 10, 2012 @06:39PM (#4768156)
what about when the browser crashes?
Re:Show HN: garlic.js - don't let your users lose their form... by benschwarz on Saturday November 10, 2012 @06:49PM (#4768187)
Sure, if you think thats a valid use case to build for. I don't.
Re:Show HN: garlic.js - don't let your users lose their form... by jonknee on Sunday November 11, 2012 @09:02AM (#4769502)
Why not? This is a plug-in aimed to help in the event something happened with the browser window. Besides accidently closing it there aren't many other scenarios where this plug-in would be useful.
Re:Show HN: garlic.js - don't let your users lose their form... by mh- on Wednesday November 14, 2012 @03:27AM (#4782505)
well, if you use a modern browser it's an unfortunate reality, regardless of how you or I think it wrong