title: JQuery UI dialog does not pop up
body: <p>I try to build an Announcement pop up function. Currently, i have a call back function to check whether someone modify the announcement.html.</p>
  
  <p>So here is the code </p>
  
  <pre><code>&lt;div id="popupDialog" class="cs_AnnoucementPop"&gt;
      &lt;?=$this-&gt;data['Popup']?&gt;
      test
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  setInterval("_checkUS2PopUpUpdate()", 12000); //12 seconds (debugging - change back to 50)
  &lt;/script&gt; 
  </code></pre>
  
  <p>So, every 12 seconds, there will an Ajax call </p>
  
  <pre><code>function _checkUS2PopUpUpdate()
  {
      var callback=new Object();
      callback.success=this.onExternalSuccess;
      callback.failure=this.onExternalFailure;
      YAHOO.util.Connect.asyncRequest('GET','/ci/ajaxCustom/ajaxUS2CheckPopupUpdate',callback);
  };
  function onExternalSuccess (o){
      if(o.responseText!==undefined)
      {
      var str=o.responseText;
      //document.getElementById('updateContent').innerHTML=str;
      if(str !== 'no update2') // Then pop up.
      {
          // This code is valid for jQuery-ui but it is not working. I think jQuery is being imported somewhere else and overwriting
          // jQuery-ui - I have set it back to the original popup for now - Matt Drewery
              $.noConflict();
          $.get('/euf/assets/announcements/pop_up_announcement_us2.html', function(data) {
                      $('#popupDialog').html(data);
                      $('#popupDialog').dialog({modal: true});
              });
  
              /*L=screen.width-200;
          T=screen.height;
          popup=window.open(str,"",'alwaysRaised=yes,status=no,toolbar=no,location=no,menubar=no,directories=no,resizable=no,scrollbars=no,height=200,width=330,left="+L+",top="+T');
          for (i=0;i&lt;200;i++)
          {
          T=T-1;
          popup.moveTo(L,T);
          }*/
          }
      }
  
  }
  </code></pre>
  
  <p>When someone send an announcement, it calls to load the HTML file and try to pop up by using JQuery UI dialog</p>
  
  <p>However, I got a break error. I do not know how to go further. Thanks.</p>
  
  <p><code>$(
  [Break On This Error] $('#popupDialog').dialog({modal: true});</code></p>