WordPress.org

Forums

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

  1. The Three
    Member
    Posted 1 year 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 );
    		push();
     	</script>

    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?

    http://wordpress.org/plugins/likebtn-like-button/

  2. LikeBtn
    Member
    Plugin Author

    Posted 1 year 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") {
        LikeBtn.init();
    }
  3. LikeBtn
    Member
    Plugin Author

    Posted 1 year 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

Tags

No tags yet.