• Hello,

    I want to implement a list of my recent comments refreshing automatically with the help of ajax and jquerry.

    This is my Div-Refresh Code, my problem is I cant get the comment list to work outside the loop or is there any way I can call it inside the loop with my code?

    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script>
     $(document).ready(function() {
     	 $("#recent-comments").load("recent-comments.php");
       var refreshId = setInterval(function() {
          $("#recent-comments").load("recent-comments");
       }, 3000);
       $.ajaxSetup({ cache: false });
    });
    </script>
    <div id="recent-comments">
    </div>
  • The topic ‘Jquerry Ajax Recent comments’ is closed to new replies.