title: $(document).ready() not executed for ajax loaded content
body: <p>What could be reasons not to execute document.ready within returned partial page?
  It works fine 2 times, but on 3rd time nothing happens after update of html:</p>
  
  <pre><code>alert(html);
  alert($(PopUpItem));
  $(PopUpItem).html(html);
  alert('in set popup html completed'); 
  </code></pre>
  
  <p>I have all alerts executed, PopupItem and html has correct values. 
  I am using  JQuery to execute server call by $.post.</p>
  
  <p>Also, Can I have error handler to catch if some syntax error happened?</p>