Hello all,
I'm here because I need your help.
Basically, I have a board with their posts made by users. For every post I have implemented the functionality of LIKE (as like facebook).
If you are entitled to LIKE a post on this board, of course, will update the page in question; But the problem is that back to the top and it stays where you made the Like on that post (as happens on facebook).
Can you tell me what to do to achieve this? Please help. And 'urgent.
Thank you all.
hello
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- iionly@iionly
iionly - 0 likes
- Paweł Sroka@srokap
Paweł Sroka - 0 likes
You must log in to post replies.I don't fully understand what you have done and what exactly you want to achieve. Elgg comes with the "likes" plugin that basically allows liking of any type of content. Have you implemented the like functionality on your own instead? The bundled likes plugin does not jump to the top of the page after liking either. So, if that's what you want why not simply using the bundled likes plugin?
As @iionly mentioned, why reinvent the wheel?
Anyway that sounds like your click event handler does not block further execution ant you get redirected to # (or whatever link you actually use). Try adding return false on the end of the handler function in javascript.