title: jQuery UI dialog and Ajax POST, JSON
body: <p>Is it possible to combine Ajax post with jQuery UI dialog?
  And I want to process the ajax reponse in JSON to HTML for showing inside the Dialog box</p>
  
  <pre><code>var url = AJAX_URL+requestId+'/'+userId;
  // Need to POST the requestId and userId instead of GET
  
  $("body").append("&lt;div id='dialog-modal'&gt;Loading...&lt;/div&gt;");
  $("#dialog-modal").dialog("destroy");
  $("#dialog-modal").load(url).dialog({
      modal:   true,
      title:   "Update Status",
      buttons: {
          Cancel: function() {
              $(this).dialog('close');
          },
          Update: function() {
              // Do something
          }
      }
  });
  </code></pre>