The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Like Button Voting & Rating
[resolved] Ajaxed comments and LikeBtn!? (3 posts)

  1. The Three
    Posted 2 years ago #

    Hello there for one more time! :D

    I am developing a full ajaxed website... so i am trying to load new comments every 60 sec. My code for refresing the comments is:

    <script type="text/javascript">
    		function push(){
    			$('.comment-list').load('http://domain.com/comment/ .comment-list > *');
    		setInterval("push()", 60000 );

    I have made an template comment.php in my theme that prints the comments and then i have created a page that uses this template... (domain.com/comment)
    <-- I load only the ".comment-list" and i replace the existing ".comment-list" with " >*" at the end of query function -->

    Where is my problem: The new comments loads ok but LikeBtn enter to an endless loading status...

    Any idea?


  2. LikeBtn
    Plugin Author

    Posted 2 years ago #

    Try to launch the code from http://www.likebtn.com/en/faq#q10 every time you load a new comment:

    if (typeof(LikeBtn) != "undefined") {
  3. LikeBtn
    Plugin Author

    Posted 2 years ago #

    Thank you for the question. Enjoy.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Like Button Voting & Rating
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.