title: How to keep chatbox scroll position when using jQuery Interval load?
body: <p>I have a little problem with my chatbox, when i try to read content, I'm getting back at very last line every 10sec and lose the line you were reading..</p>
  
  <p>My chatbox is using two files,</p>
  
  <p><strong>file #1: chat index</strong>
  Using jQuery load &amp; setInterval function to reload the file that contain chat logs created by PHP.</p>
  
  <pre><code>$(document).ready(function() {
     $("#chatbox_content").load("chatbox_logs.php");
     var refreshId = setInterval(function() {
        $("#chatbox_content").load("chatbox_logs.php");
     }, 10000); // refresh each 10sec
     $.ajaxSetup({ cache: false });
  });
  </code></pre>
  
  <p><strong>file #2: chat logs maker</strong>
  Simply using scrollTop function onload, to keep the scroll at the very bottom on the designated div.</p>
  
  <p>-</p>
  
  <p>I want to know, if its possible to detect the scroll position of file #2 on file #1 before next Interval reload,
  so i can use on file #1 :</p>
  
  <pre><code>$("#chatbox_content").load("chatbox_logs.php?scroll=scrollTop_var");
  </code></pre>
  
  <p>file #2 will just use PHP _GET[] to set the good scroll position onload.</p>