title: ajaxStop() is firing but ajaxStart() doesn't
body: <p>Every time I call my servlet by clicking a button, I receive the ajaxStop() message, but it doesn't work for ajaxStart() and I don't know why. Here is my code.</p>
  
  <pre><code> $(document).ready(function () {
          $("#continue").click(function () {
              var period = $("#period").val();
              var year = $("#year").val();
              var dataString = {"period": period, "year": year};
               $.ajax({
                  url: 'GenerateButtons',
                  data: dataString,
                  type: 'post',
                  cache: false,
                  success: function (data) {
                      $('#uploadFileButtons').html(data);
                  },
                  error: function () {
                      alert('error');
                  }
              });
          });
          $(document).ajaxStart(function(){
              console.log("ajaxStart");
          }).ajaxStop(function(){
             console.log("ajaxStop");
          });
   });
  </code></pre>
  
  <p>Im using Firefox and NetBeans for my web application by the way.</p>
  
  <p><strong>[Update edit]</strong>
  I tested it in a separated project and it works fine. After doing that, I realized that one of the ajax code is getting invoked by something weird like this. It triggers the ajaxStop() but not the ajaxStart() . So I have to tell the dude who did this that he has to fix it. In any case, it seems that ajaxStop/ajaxStart has to be called by a jQuery event to get both triggered correctly.</p>
  
  <pre><code>    $(document).ready(function () {
      var p = document.getElementById("menssage").innerHTML;
  
      if (p === "This period is already processed") {
          $.ajax({
              url: 'ShowDiffServlet',
              data: dataString,
              type: 'get',
              cache: false,
              success: function (data) {
                  $('#tabla').html(data);
              },
              error: function () {
                  alert('error');
              }
          });
          $("#continue").prop('disabled', false);
          $("#warningReprocess").show(1000);
      }
      if (p === "File was successfully uploaded!") {
          var dataString;
          $.ajax({
              url: 'ShowDiffServlet',
              data: dataString,
              type: 'post',
              cache: false,
              success: function () {
              },
              error: function () {
                  alert('error');
              }
          });
          $("#continue").prop('disabled', false);
          $("#tableTitle").html("&lt;hr&gt;&lt;h1&gt;Diff table&lt;/h1&gt;");
      }
  
      $(document).ajaxStart(function(){
          console.log("Starting loader");
          $loader.addClass("loading");
      }).ajaxStop(function(){
         console.log("Stopping loader");
         $loader.removeClass("loading");
      });
  });
  </code></pre>