title: How to close and overlay jQuery Mobile modal Dialog?
body: <p>I display dialog box via jquery mobile alpha 4 with ajax like:</p>
  
  <p>Within the succes callback:</p>
  
  <pre><code>success:
  $j('#wchkdiv').html(msg);
  $j("#wchkdiv").dialog();
  $.mobile.changePage($('#wchkdiv'), 'pop', false, true);
  </code></pre>
  
  <p>Above code causes the dialog to nicely transition into its appearance when some text in the html page is clicked on ( not anchor tag) to which javascript binds click event.</p>
  
  <p>Now within the dialog I have code like:</p>
  
  <pre><code>&lt;form id="gform" name="gform" class="formbody" method="post"&gt;
  &lt;input class="btns" type="button" onclick="return wchkSubmit(event,'tryAgain');" 
       name="tryAgain" value="Try Again"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When Try Again button is clicked, I must handle this via javascript which should make the dialog close (among other things it needs to do), and the content page that was showing before the dialog was shown, is now showing again. That means it should not cause any page reloading and dialog box should not be part of browsing history.</p>
  
  <p>It would be another big plus if you can show me how I can make jquery mobile Dialog to appear in part of the screen overlaying on top of html page with the html page content dimmed or some kind of transparency effect? Currently the Dialog takes up the whole screen.</p>