title: jQuery function to check if background page fully loaded?
body: <p>I was wondering if it's possible to use the <code>$().ready</code> function to test if another page is fully loaded.</p>
  
  <p>Here I'm talking about a newsfeed updater, where the function will send a <code>POST</code> request to a background php page to update the database, and then, using ajax, the newsfeed will reload to grab new data.</p>
  
  <pre><code>function send_data(){
      var head = $("#headline").val();
      var news = $("#news").val();
      var info = '&amp;headline='+head+'&amp;news='+news; //update string
      $.ajax({
          url: 'recieve_update.php', //updating php file
          type: 'POST',
          data: info                 //data string
      }); 
  
      $().ready(function() {
          $("#newsfeed").load("load_news.php"); //reload the newsfeed viewer
      }); 
  }
  </code></pre>