This is a cool idea - disable the Submit button via JavaScript when it’s pressed, so poeple can’t resubmit a comment multiple times. Not that it’s happened to me, but I like it anyway.
Shamelessly stolen from Submit only once!
Note to self: Implement this, or something like it.
Not sure how it is implemented over at that site but IMHO, it would be better to implement a time-based function. People may legit-ly want to submit multiple comments (may be they forgot something, like me)
1 day, 8 hours after the fact.
Ideally, it would be nice to use XMLHttpRequest (aka AJAX) to send off the comment, and when it’s done, display the comment to the user, empty the comment box, and then re-enable the button.
Or, perhaps use Javascript to reload the page when the comment has been submitted.
1 day, 8 hours after the fact.
Actually, after pressing the Submit button, the page reloads anyway, so preventing the user pressing again in the time between initial send, and then the reload of the page is probably not too bad. If the user wants to add more comment, they can after the reload.
I really want to have moderated comments shown, but that’s an issue that requires PHP intervention.
1 day, 8 hours after the fact.