title: how to close a pop up dialog page and open another one from code?
body: <p>I am closing a pop-up dialog and follow I am opening another pop-up like:</p>
  
  <pre class="lang-js prettyprint-override"><code>$( "#iece" ).popup( "close" );
  $( "#popupMatricula" ).popup( "open" );
  </code></pre>
  
  <p>I also try:</p>
  
  <pre class="lang-js prettyprint-override"><code>       $(function() {
              $( "#iece" ).bind({
                 popupafterclose: function(event, ui) {                         
                      $( "#popupMatricula" ).popup( "open" );
                 }
              });              
          });
  </code></pre>
  
  <p>But the #popupMatricula never opens.</p>