title: Auto refreshing the content without reloading page, using JQuery?
body: <p>I have a jsp page which shows the contents of a table. 
  While the user views a page the contents of the table changes on a second-by-second basis. 
  So the user has to refresh the page every time to see fresh and updated contents.
   How can i update contents of the jsp page without having to refresh the page.</p>
  
  <p>here is my code pls</p>
  
  <p>it will not work .Please give me your suggestions and if not give a sample code thanks</p>
  
  <p>index.jsp</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;Title&gt;Just A Test&lt;/Title&gt;
     &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      var auto_refresh = setInterval(
      function ()
      {
      $('#load_me').load('samp.jsp').fadeIn("slow");
      }, 10000); // autorefresh the content of the div after
                 //every 10000 milliseconds(10sec)
      &lt;/script&gt;
   &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="load_me"&gt; &lt;%@ include file="samp.jsp" %&gt;&lt;/div&gt;
  &lt;/body&gt;
  /html&gt;
  </code></pre>