title: closing the Jquery Dialog On form Submission
body: <pre><code>$('#srch').click(function(e){
      if ($("#form").validationEngine({returnIsValid:true})) {
            $("#loader").dialog('open');
          $.ajax({
              type: "GET",
              url: "/cdr/abc.php",
              cache: false,
              data: $("#srch").serialize(),
              timeout: 5000,
              error: function (XMLHttpRequest, textStatus, errorThrown) {
                  //ajaxSubmitError(XMLHttpRequest, textStatus, errorThrown);
              },
              success: function (data) {
                  $('#submit-dialog').dialog('close');
              }
              }); 
              e.preventDefault();
      }
  
  
  });
  </code></pre>
  
  <p>In The Above Function Iam Not able to navigate to the The Action (php) Page.and The Dialog runs Indefinitely and how should  i close the dialog when The Form submits </p>