title: jQuery .dialog on load()
body: <p>I want do wrap error messages that appears (in #error div) and disappears from page to page in a jQuery UI dialog. Some of error messages are added dynamically by jQuery $('body').append('blablabla') or another insertion method. So this construction:   </p>
  
  <pre><code>$('#error').load(function() {
     $('#error').dialog({
         draggable: false,
         modal: true
     });
  });
  </code></pre>
  
  <p>is not work. This:</p>
  
  <pre><code>$('#error').live('load', function() {
     $('#error').dialog({
         draggable: false,
         modal: true
     });
  });
  </code></pre>
  
  <p>is not work either.
  Can anybody tell me what should I do?</p>