title: How do I load the content from a jsp page into a modal window using jQuery?
body: <p>I am trying to find the best implementation for this situation. I want load the content from a jsp page to a popup window, I tried to use SimpleModal but this library doesn't work with a jsp page, now I'm trying to use a Dialog from JQuery UI.  However, this also doesn't work.</p>
  
  <p>Here is my code below:</p>
  
  <pre><code>function loadPage() {    
      $("#loaderPage").load("test1.jsp");
      $("#loaderPage").dialog({
          height: 600, 
          width: 600, 
          modal: true
      }); 
      return false;
  }
  </code></pre>
  
  <p>I'm not getting an error, but I'm also not getting a dialog to popup. What can be wrong and how I can resolve my problem?</p>