I have what is essentially the equivalent to a "like" button, aka, a link that when you click on it, a message to the server should be sent to increment the counter on the page. Is there a built in widget for this? or is it code your own, i.e. it should basically do this:
- Switch the "Like" link to say "Unlike"
- Increment the counter.
- POST to the server saying the counter should increment.
- If server returns error, unincrement the counter and switch "Unlike" back to like.