title: How to scroll down to new messages on ajax chat?
body: <p>I'm working on a private chat system. I use PHP and Javascript and a lot of frames. :D </p>
  
  <pre><code>frames:
  
  -------------*--------------- 
  
  | chat messages here        |                         
  
  -------------*---------------
  
  |send message frame         |
  
  -------------*---------------
  </code></pre>
  
  <p>I want to update the frame where the chat messages are, but I would like to do it cool way. You know if I just reload the frame that don't looks cool. If i just reload a small div, that maybe a bit better, but I don't know... I mean this:</p>
  
  <pre><code>function newMessageShow()
  {
  print messages ... 
  // wait 10-20 sec... somehow
  newMessageShow();
  }
  </code></pre>
  
  <p>You know what I mean, no? ... I'm sorry for my poor english... If you understood me, could you help me a bit? </p>