jquery's .html() method not working in chrome and safari
<p>I am trying to display a popup by fetching the html data using GET method and adding to a div using .html() method. below is the code I have written for the same. This is working fine in IE and Firefox but failing in Chrome and Safari.</p>

<pre><code>function openPopupWindow(url, width) {
      $.ajax({
          url: url,
          type: 'GET',
          timeout: 180000,
          success: function(data){
           var popUpBody = $("div.popupDivClass").html(data);
           $(popUpBody).dialog({
                autoOpen: false,
                        resizable: false,
                        width:width,                  
                        modal: true
                  });
           //$("div.ui-dialog-titlebar").hide();
            $(popUpBody).dialog( "open" );
          }
      });
}
</code></pre>

<p>I am getting the below exception: </p>

<blockquote>
  <p>Uncaught Error: INVALID_STATE_ERR: DOM Exception 11 - jquery-1.4.4.min.js:122</p>
</blockquote>

<p>Any suggestions?</p>
