title: I want to show Jquery UI Dialog(message) after an Ajax request
body: <p>first: I want to show the returning data with an Ajax request in my Jquery UI message box. and second: in the code below the message box appears just for 1 second. I dont know why!!!!!</p>
  
  <pre><code>&lt;script&gt;
    $(document).ready(function(){
      $("#dialog-confirm").dialog({
        autoOpen:false,
        resizable: false,
        height:140,
        modal: true,
        buttons: {
          "Ok": function() {
             $( this ).dialog( "close" );
          }
        }
      });
  
      $("#customer_form").submit(function(){
        $.get("../ajax/Services.php?Add=Add, function(data){
          if (data) {
            $("#dialog-confirm").dialog("open");
          }
        });
      });
    });
  &lt;/script&gt;
  &lt;body&gt;
    &lt;div id="dialog-confirm" title="MY TITLE"&gt;
      &lt;p&gt;
        SOME TEXT &lt;span class="ui-icon ui-icon-alert"
                        style="float:right; margin:0 7px 20px 0;"&gt;&lt;/span&gt;
      &lt;/p&gt;
    &lt;/div&gt;       
  &lt;/body&gt;
  </code></pre>