title: Grabing Page Fragment After Page Loads
body: <p>I'm attempting to use load() with a selector</p>
  
  <pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
      $('#Documents').load('../searchresults.aspx #listing', '', function() {
          if(status == 'error') {
              $(this).html('Error loading page');
          }
      });
  });
  </code></pre>
  
  <p>The problem is that the <code>../searchresults.aspx</code>  page by itself first display "Loading..." then refreshes with the actual data within a few seconds.</p>
  
  <p>So my div <code>#Documents</code> just display "Loading..."</p>
  
  <p>How would I go about getting the <code>#listing</code> contents after the pages has completely finishes loading?</p>