-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase count on button press #1
Comments
Sounds good but I don't know a way to detect if the person really shared the item. Increasing it just after the button got pressed doesn't sound like something I would like. |
Yeah, I try to search, if there is something for this. Increase after the button is pressed is a dirty trick, yes. Some thought on this: This seems also dirty, but: Again in smaller steps.
But this seems too heavy for a page with much traffic. This might make the cache obsolete. ...just a crazy guys thoughts ;) |
The "gets focus" event is existing: |
Hm - the "gets focus" event could also start a json call to the specific API. Like the backend does. https://github.com/heiseonline/shariff-backend-node/blob/master/lib/facebook.js |
Hi,
would be great, if the like-count would increase as a reaction of liking a content.
I haven't digged into shariff completely, but it seems to be not that sensefull to reload the count directly after pressing the button.
What about a little fake. Add a jQuery script, that increase the number by one. This would just change the interface to give the user direct feedback.
Sounds nice?
I guess I could write ne necessary script.
Something like: If a shariff button is pressed, search for the count box, get it's value, treat it like a integer, increase by one, write the new value.
Hm - maybe it should listen for the closing-event of the sharing box. If canceled, do nothing. If closed properly, increase.
What's your opinion on this idea?
The text was updated successfully, but these errors were encountered: