title: jquery tools: Calling doc ready initialization in script loaded by ajax
body: <p>I have a jquery tools based tabs working great, and on each tab I load pages using ajax.  One of the pages has got tools from another party, which requires the following code be run when ready:</p>
  
  <pre><code>$(function() { $('.scroll-pane').jScrollPane({showArrows: true}); });
  </code></pre>
  
  <p>I'm note sure where to put this code (in the ajax loaded page).  According to the flowplayer guys:</p>
  
  <p>"The script tag should be placed below the HTML elements not inside the document.ready()  event because that event is not fired for the pages that are loaded with AJAX."</p>
  
  <p>Does that mean encapsulate the above in <code>&lt;script&gt;&lt;/script&gt;</code> tags, and place after the <code>&lt;/html&gt;</code> tag?  That's outside the whole doc so it doesn't seem right...</p>
  
  <p>Help anyone...where should I put my initialization code in the ajax doc?</p>
  
  <p>Thanks</p>