title: Opening a dialog in jquery always prompt do you want to save this file
body: <p>if i try to open a dialog in jquery, it does opens dialog but it prompt save as file. And forces me to download a txt file which has no data in it.</p>
  
  <p>How to prevent that file download option. Here is my code.</p>
  
  <pre><code>        var dialogDiv = $("#DialogTest");
          dialogDiv.dialog(
              {
                  bgiframe: true,
                  autoOpen: false,
                  height: 200,
                  width: 450,
                  position: 'center',
                  modal: true,
                  draggable: true,
                  title: 'name',
                  buttons: {
                      'Ok': function () {
  
                      }
                                      ,
                      Cancel: function () {
                          $(this).dialog('close');
                      }
                  },
                  open: function () {
                      $("#name").removeClass("invalidInput").focus();
  
                  },
                  close: function () {
  
                  }
              });
  
  
         $("#Button").bind("click", function () {
  
              dialogDiv.dialog('open');
  
          });
  
  
  //Html code
  
      &lt;div id="DialogTest"&gt;
              &lt;legend id="name"&gt;&lt;/legend&gt;
              &lt;label for="name"&gt;Enter Name&lt;span&gt;*&lt;/span&gt;&lt;/label&gt;
              &lt;input type="text" name="name" id="name" class="LongInputField" maxlength="50" /&gt;
      &lt;/div&gt;
  </code></pre>