title: jQuery ajax() Call Failing
body: <p>I am writing a web-based application that makes a call to server to update a particular object in the server, from a REST-ful application.</p>
  
  <p>This is the javascript code that I have written.</p>
  
  <pre><code>var sendUrl = url + "v1/items/" + itmId;
  $.ajax({
      "type": "PUT",
      "url": sendUrl,
      //"data": {"name": nameVal, "description": descVal},
      "success": function() {
          alert('hai');  //refreshItems();
      },
      "complete": function (jqXHR, textStatus) {
          alert (textStatus);
      }
  });
  </code></pre>
  
  <p>When this code is executed, the server did not receive any request.  The browser did not show any update.</p>
  
  <p>I am using Google Chrome as my browser.  So, I looked into Chrome's Javascript Console, the console showed this error:</p>
  
  <p><img src="https://i.stack.imgur.com/KGnQx.jpg" alt="Error from Chrome&#39;s Console"></p>
  
  <p>Are there any possible solutions to this problem? </p>
  
  <hr>
  
  <p>Edit:</p>
  
  <p>As suggested in one of the comments, I tried looking into Network Panel.  It seems it is not making a call to Server.</p>
  
  <p>This is the screenshot of this particular request:
  <img src="https://i.stack.imgur.com/axvws.png" alt="enter image description here"></p>
  
  <p>The image is very small.  The status is "(failed)" and Type is Pending</p>
  
  <p>If Server does not have PUT configured, it would result in an Internal Server Error.  So, that is not happening here.</p>
  
  <hr>
  
  <p>Edit</p>
  
  <p>After trying the suggestion given in the answer,</p>
  
  <p>This is the code:</p>
  
  <pre><code>var sendUrl = url + "v1/items/" + itmId;
  $.ajax({
      "type": "PUT",
      "url": sendUrl,
      //"data": {"name": nameVal, "description": descVal},
      }).done(function ( ) {
          alert('OK');
      }).fail(function ( jqXHR, textStatus, errorThrown ) {
          console.log(jqXHR);
          console.log(textStatus);
          console.log(errorThrown);
      });
  </code></pre>
  
  <p>Here are the objects that has been logged:</p>
  
  <p><img src="https://i.stack.imgur.com/p9sKG.jpg" alt="enter image description here"></p>