title: ajax request without data not working
body: <p>I am trying to delete a photo using ajax and when the photo is deleted show default image instantly, so far I am done with php side but the ajax part isn't working. How can I make an ajax request without data type?</p>
  
  <pre><code>function delete_image()
  {
      $.ajax({
          type: "POST",
          url: "target.php?page=delete",
          cache: false,
          success: function(response)
          {  
              var $divs = $("&lt;div&gt;" + response + "&lt;/div&gt;");
                $("#phd").fadeOut('slow');
              $(".suc_pic").fadeIn('slow').empty().append($divs.find("#msg"));//the default picture fades in once the photo is deleted.
  
             }
      });
  
  
  }
  </code></pre>