title: jQuery custom content scroller scrolling
body: <p>I've done scroll bar with <code>jQuery custom content scroller</code> just fine , but have some problems with it. Exactly I've done this scroll bar with div tag in which I'm retrieving data from mysql (some posts), so my problem is that I'm using ajax for sending data to database and it works too ,but when data is appended on div tag , scroller has fixed size , it isn't renewing (only renewing when page is refreshed). How can renew scroll bar size within adding data with ajax ? And also I can't understand how it is possible to fix scroll bar at the end ? pls help I'm very confused about this issue , thanks :)</p>
  
  <p>PS. here is plugin home page too <a href="http://manos.malihu.gr/jquery-custom-content-scroller" rel="nofollow">http://manos.malihu.gr/jquery-custom-content-scroller</a></p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>$.ajax({
                  url:  "ajax/posting.php",
                  type: "POST",
                  data: {send_post: "Send", user_id: "&lt;?php echo $userArr[0]; ?&gt;", user_name: "&lt;?php echo $userArr[2] . " " . $userArr[3]; ?&gt;", msg: $("#post").val()},
                  complete: function(){
                      $("#post").val("");
                  },
                  success: function(result){
                      $.ajax({
                          url:  "ajax/posting.php",
                          type: "POST",
                          data: {renew_posts: "Yes",admin: "&lt;?php echo $userArr[1]; ?&gt;",owner: "&lt;?php echo $userArr[0]; ?&gt;"},
                          success: function(renewed_data){
                              $("#chat_tb").html(renewed_data);
                              (function($){$(window).load(function(){$(".post_container").mCustomScrollbar({
                                  scrollButtons:{enable:true,scrollSpeed: 40}
                              });});})(jQuery);
                          }
                      });
                  }
              });
  </code></pre>
  
  <p>In this code only it is remarkable how to update mCustomScrollbar() function within callback , after sending data to database</p>