Skip to content

Comment on Show HN: Startuplister – A startup directory listing service

Comments

Really wish I could save my startup form answers (to local storage) without submitting the form. I have to leave, and can't finish the form right now. Should be easy using something like http://sisyphus-js.herokuapp.com/

I just use notes - pain in the ass, but it's a task now worth $50.

Excellent point. Working on a fix for this now.

For now, this hack seems to work. Run these commands in the browser console:

     var form = $('#post').serialize();
     localStorage.setItem('startuplister', JSON.stringify(form));
Then when you navigate back, do:
     var form = JSON.parse(localStorage.getItem('startuplister'));
     var s = document.createElement('script');
     s.src = 'https://cdn.rawgit.com/kflorence/jquery-deserialize/master/src/jquery.deserialize.js';
     document.getElementsByTagName('head')[0].appendChild(s);
     $('#post').deserialize(form);

Thanks for the tip on GarlicJS! I just implemented it and it was super slick.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.