On this problem some more people have stumbled and for non-ajax scenario there is already a solution : How to prevent multiple inserts when submitting a form in PHP?
(answered Jan 25 '10 at 17:02)
I'd like to know how could be implemented efficiently on both the server and client side a similar solution for the following problem :
- there is a wall listing containing multiple items on which the users can click an ajax-enabled "i like" button (no page reload)
- the user can have multiple browser windows opened on which can click "i like" buttons
Expected : Only the first click on the "I like" button for any of the wall items is taken at the server side into account and the following requests for the wall item are not handled anymore.