title: IE Not Waiting for content to load from ajax call
body: <p>I am trying to apply a jquery scrollbar to a div that is populated with content from another local jquery call. My problem is that IE does not seem to wait for the content in the div to load, before calling the script for the scrollbar...hence, the scrollbar does not work correctly.  </p>
  
  <ul>
  <li>All other browsers work fine, IE (ver. 8, 9 ) is the only one not working.  </li>
  <li>when the div contains static html code, IE works fine</li>
  <li>the call to the scroll function is inside a window.load</li>
  </ul>
  
  <p>The strange thing:  IF i stick an alert() call before calling the scroll code, it will work. </p>
  
  <p>I have tried adding a setTimeout() function, but that did not work.</p>
  
  <p>The code looks like this</p>
  
  <pre><code>&lt;head&gt;
    &lt;script&gt;
        $(document).ready(function() {
            // ajax call to populate scrollable div with html content
         });
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;div class="scrollableDiv"&gt;
  
         // content populated by script call above
  
      &lt;/div&gt;
  
      &lt;...... lots more html here .....&gt;
      &lt;!-- very bottom of page --&gt;
      &lt;script&gt;
         $(window).load(function(){
            // alert ("IF I ADD THIS ALERT, EVERYTHING WORKS FINE IN IE");
           $('.scrollableDiv').ClassyScroll();
  
         });
      &lt;/script&gt;
    &lt;/body&gt;
  </code></pre>
  
  <p>Any ideas???</p>