WP Ajaxify Comments
[resolved] Refresh comments with ajax? (5 posts)

  1. andy999
    Posted 2 years ago #

    Let me start by saying that this plugin is fantastic, got it working great for a site I'm building at the moment(even after wrestling with the styling on blockUI).

    I'm wondering if it'd be possible to add 'refresh all comments' with ajax, so people can refresh the entire comments section without the page reloading?
    Much like the sort of functionality you see on systems like livefyre etc.


  2. janjonas
    Plugin Author

    Posted 2 years ago #

    Hi andy999,

    thanks for your comment. Please try out the new developer version 0.12.0 from here http://downloads.wordpress.org/plugin/wp-ajaxify-comments.zip.
    This version includes an extended client-side JavsScript API.
    You can use the function
    to refresh the comments on the current page.

    Hope this helps ...

  3. janjonas
    Plugin Author

    Posted 2 years ago #

    0.12.1 was released yesterday. I think the topic is resolved.

  4. andy999
    Posted 2 years ago #

    How do I use WPAC.RefreshComments() to refresh the comments?

    I have no idea where to write that or put it.

  5. janjonas
    Plugin Author

    Posted 2 years ago #

    You need to add some JavaScript client side code to your page. You can use for example the JavaScript code to refresh the comments every 5 seconds 5:

    window.setInterval('WPAC.RefreshComments();', 5000);

    Hope this helps...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Ajaxify Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.