title: Can't Get Dialog to show programmatically in JQuery Mobile
body: <p>I'm trying to get a div with data-type 'dialog' to display in JQuery Mobile, fired by a Javascript event.  The button click in the example below is purely to fire the event.</p>
  
  <pre><code>&lt;head&gt;
      &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.css" /&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(document).ready(function() {
              //$.mobile.changePage('#addCatForm');
  
              $('#createEvent').click (function () {
                  console.log('Prove event fired');
  
                  $.mobile.changePage('#addCatForm', {
                      transition: 'pop',
                      changeHash: false,
                      role: 'dialog'
                  });
              });
  
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div data-role="page" id="mainPage"&gt;
          &lt;button id="createEvent"&gt;Create Event&lt;/button&gt;
          &lt;div data-role="dialog" id="addCatForm" data-theme="c"&gt;
              &lt;p&gt;here is some text&lt;/p&gt;
              &lt;div data-role="content"&gt;
                  &lt;input type="text" id="catText" data-theme="c"/&gt;
                  &lt;input data-role="button" data-mini="true" data-theme="b" data-inline="true" type="submit" id="addCat" value="Add Category"&gt;
  
                  &lt;button data-role="button" data-mini="true" data-theme="c" data-inline="true" id="canCat"&gt;Cancel&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;    
  &lt;/body&gt;
  </code></pre>
  
  <p>The console.log output correctly fires, but nothing I can do seems to get the dialog to display.</p>
  
  <p>Any help appreciated.</p>
  
  <p>Thank you,</p>