WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. The Three
    Member
    Posted 9 months 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 9 months 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 8 months ago #

    Thank you for the question. Enjoy.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.