Hacker News new | ask | show | jobs
by rhgraysonii 4031 days ago
A couple points I noticed toying with it --

Using the back button seems to keep trying to resubmit the form and break the page for me.

Also, you could remove the last result when an item is deleted from the page. It was displaying a record I had deleted because it was also the last submitted.

Really like the concept. I've always been a fan of doing core lifts like this and generally just keep it all in a notepad I jot on after I leave the gym.

1 comments

We really appreciate the positive feedback.

Good point with the back button. The original page was made in 2007 and the full page form submission could be refined to use an AJAX post.

Would it be possible to explain "you could remove the last result when an item is deleted from the page" a little further? Do you mean resetting the page back to its initial state?

What I mean is lets say I do this:

Save my Bench Press

Save my Dead Lift

Now, I will have the success * message at the bottom from submitting my Dead Lift, but if I go to the bottom and delete it, this success message is still showing, even though I have deleted the value.

Adding a simple event handler for the click of the delete button to empty the container containing success messages would handle this.

Understood, thanks for the explanation.