title: Aborting JSF Ajax Request from jsf.ajax.addOnEvent()
body: <p>I would like to have a central place where I monitor ajax requests and in certain situations abort them.</p>
  
  <p>The only thing I don't know to do is to actually abort the ajax request from one central function.</p>
  
  <p>I Imagine that the solution would look something like this:</p>
  
  <pre><code>jsf.ajax.addOnEvent(function(data) { 
      if (data.status === 'begin') {
          // abort the ajax request
      }
  });
  </code></pre>
  
  <p>But I might be mistaken.</p>
  
  <p>Thanks!</p>