Live data from Hacker News

Show HN: garlic.js - don't let your users lose their form data

guillaumepotier.github.com

31–40 of 109 posts

Re: Show HN: garlic.js - don't let your users lose their form data

#31
post #20

> don't let your users lose their form data This is a huge problem, and is the reason I've had Lazarus installed for a few years now. https://addons.mozilla.org/en-us/firefox/addon/lazarus-form-... Apparently it exists for Chrome now, too.

Thinking about it, I'm mildly amazed that the browsers themselves didn't solve this problem back in 1996 or so.

[deleted]

Re: Show HN: garlic.js - don't let your users lose their form data

#32

I just hope everyone gets to use it. I added it to my "great to have" Javascript libraries list. Good work!

Ruben, can you please share your "great to have" Javascript libraries list? It sounds promising.

It's still a work in progress, but of course! I have many (many!) bookmarked pages with more libraries in my instapaper feed, some emails to myself and a few emacs .org files I use as buckets. I just decided to start collecting them last week and made a quick sweep-clean with the most recent tabs I had open and the few I had linked to recently:

1.1 Markdown 1.1.1 http:// attacklab.net/showdown/

1.2 DBs 1.2.1 http://jazzrecord.org

1.3 Unit tests 1.3.1 http://jsunittest.com/

1.4 Documentation 1.4.1 http://www.naturaldocs.org/ 1.4.2 http://fitzgen.github.com/pycco/

1.5 Visual 1.5.1 http://lab.hakim.se/kort/

1.6 localStorage 1.6.1 Redis inspired, at twilio https://github.com/twilio/BankersBox 1.6.2 Amplify.store http://amplifyjs.com/api/store/ 1.6.3 Persistent form data http://guillaumepotier.github.com/Garlic.js/

I'll probably end up posting the list (or the mind map that forms it) on my blog sooner or later (probably as soon as I hit 30 or when I finish my current Javascript RTE project)

Re: Show HN: garlic.js - don't let your users lose their form data

#35
post #20

> don't let your users lose their form data This is a huge problem, and is the reason I've had Lazarus installed for a few years now. https://addons.mozilla.org/en-us/firefox/addon/lazarus-form-... Apparently it exists for Chrome now, too.

Thinking about it, I'm mildly amazed that the browsers themselves didn't solve this problem back in 1996 or so.

Maybe it's a security issue? With some sites you might not want that information saved, perhaps.

Re: Show HN: garlic.js - don't let your users lose their form data

#36
post #20

> don't let your users lose their form data This is a huge problem, and is the reason I've had Lazarus installed for a few years now. https://addons.mozilla.org/en-us/firefox/addon/lazarus-form-... Apparently it exists for Chrome now, too.

Thinking about it, I'm mildly amazed that the browsers themselves didn't solve this problem back in 1996 or so.

Opera saves forms when possible. It also has instant backward navigation from cache. I guess it saves forms on cached pages.

Re: Show HN: garlic.js - don't let your users lose their form data

#37
post #6

Earlier quoted context omitted.

It would also be nice if the documentation mentioned that it requires jQuery.

Hmm, what does jQuery provide that is so essential that someone decides to add a dependency this big for something so simple? It seems that everything requires jQuery these days, even when a 5-line for loop would do.

> It seems that everything requires jQuery these days

And there's your answer: The "cost" of depending on jQuery is small since so many things depend on it that most potential users probably already pull it in.

Re: Show HN: garlic.js - don't let your users lose their form data

#38
post #6

Earlier quoted context omitted.

It would also be nice if the documentation mentioned that it requires jQuery.

Hmm, what does jQuery provide that is so essential that someone decides to add a dependency this big for something so simple? It seems that everything requires jQuery these days, even when a 5-line for loop would do.

This seems to be the new 'cool'. Why jQuery whine, whine, whine. You've got jQuery on your own site. Why are you moaning about it?

The source is here:

https://github.com/guillaumepotier/Garlic.js/blob/master/gar...

The code is pretty much idiomatic jQuery js following most of their style rules, layout rules and standard constructs so it's obviously been written as a jQuery extension. He must know jQuery well, hence why not use it?

As for why, well I spotted a bit of sizzle, jQuery.data and the event framework in one pass of a small code base. Given the nature of the library I can even guess what they're all for without reading the code.

Quite a lot more than the inevitable each that is also in there.

Re: Show HN: garlic.js - don't let your users lose their form data

#39
post #6

Earlier quoted context omitted.

It would also be nice if the documentation mentioned that it requires jQuery.

Hmm, what does jQuery provide that is so essential that someone decides to add a dependency this big for something so simple? It seems that everything requires jQuery these days, even when a 5-line for loop would do.

Ideally this would be solved in a similar way as when you statically link to libraries in C - the parts of your dependency are pulled in and users don't have to worry about it. (There are other issues with this of course, but they are well understood by now that someone could develop a system to mitigate that by now)

Re: Show HN: garlic.js - don't let your users lose their form data

#40

Don't want to be that guy, but what's different from http://simsalabim.github.com/sisyphus/ ?

Oh, I was totally unaware of this one. Never mind, it clearly shows that there's a lack here on this browser behavior. My project is juste a few hours pet project. I'll try to maintain it and make it as advanced & usefull as sisyphus, for fun :)
Post reply on HN