title: jQuery dialog with dynamic content
body: <p>I want to create a jQuery dialog on-the-fly.  I'm using this:</p>
  
  <pre><code>var newDiv = $(document.createElement('div')); 
  $(newDiv).html('hello there');
  $(newDiv).dialog();
  </code></pre>
  
  <p>I then have this in the html header:</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery-ui-1.8.1.custom.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>When I try running the JS in IE7 I get the following error on the $(newDiv).dialog(); line :
  Object doesn't support this property or method.</p>
  
  <p>Anyone know what's going on?</p>