title: Load database data without reload without interval
body: <p>I want to fetch data from database without reload but also without setting interval. I know that one way is with interval by:</p>
  
  <pre><code>setInterval(function(){
  
  $("#someDiv").load("somefile.php");
  
  }, 1000);
  </code></pre>
  
  <p>But is it possible to load div from page not whole page. Or if I need to load whole page how can it be done without setting interval...</p>