jQuery ajaxStart was not called for one of the events.



  • There's a problem: I'm a edited foreign crypt, and there's ajaxStart and ajaxStop tightly attached to the crypt, and I have to do my ajax request on the page so that these events don't arise. Question: Can this be added in the ajax (post) method? Or it's possible to fix what the author did. I didn't find an answer online, unfortunately. ♪

    That is how the author is handling this method (without his script(s):

    jQuery(document).ajaxStart(function () {
        console.log('ajaxStart');
    });
    

    AjaxStop is similar.



  • Read the documentation.

    If $.ajax() or $.ajaxSetup() is called with the global option set to false, the .ajaxStop() method will not fire.

    If $.ajax() or $.ajaxSetup() is called with the global option set to false, the .ajaxStart() method will not fire.

    Do your request. $.ajax() with parameter global = false




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2