News for hackers. Stuff that matters.
Re:Show HN: Startuplister – A startup directory listing service by nodesocket on Wednesday August 13, 2014 @09:20PM (#8175676)
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/
Re:Show HN: Startuplister – A startup directory listing service by BillFranklin on Wednesday August 13, 2014 @09:52PM (#8175741)
I just use notes - pain in the ass, but it's a task now worth $50.
Re:Show HN: Startuplister – A startup directory listing service by crixlet on Wednesday August 13, 2014 @09:33PM (#8175710)
Excellent point. Working on a fix for this now.
Re:Show HN: Startuplister – A startup directory listing service by nodesocket on Wednesday August 13, 2014 @09:39PM (#8175720)
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);
Re:Show HN: Startuplister – A startup directory listing service by joshcanhelp on Thursday August 14, 2014 @01:01AM (#8176167)
Re:Show HN: Startuplister – A startup directory listing service by crixlet on Thursday August 14, 2014 @01:58PM (#8178758)
Thanks for the tip on GarlicJS! I just implemented it and it was super slick.