title: Stop Duplicate Ajax Submisions?
body: <p>I am wondering what is the best way to stop duplciate submissions when using jquery and ajax?</p>
  
  <p>I come up with 2 possible ways but not sure if these are the only 2.</p>
  
  <ol>
  <li><p>On Ajax start disable all buttons till request is done. 2 problems I see with this though is I use jquery model dialog so I don't know how easy it would be to disable those button as I not sure if they have id's. Second I if the the request hangs the user has really no way to try again since all the buttons are disabled.</p></li>
  <li><p>I am looking into something called AjaxQueue at this time I have no clue if it is what I need or how it works since the site where the plugin is apparently down for maintenance.</p></li>
  </ol>
  
  <p><a href="http://docs.jquery.com/AjaxQueue" rel="noreferrer">http://docs.jquery.com/AjaxQueue</a></p>
  
  <p><strong>Edit</strong></p>
  
  <p>I think this is a spin off of what I was looking at.</p>
  
  <p><a href="http://www.protofunc.com/scripts/jquery/ajaxManager/" rel="noreferrer">http://www.protofunc.com/scripts/jquery/ajaxManager/</a></p>
  
  <p>The only problem I see with this ajaxManager is that I think I have to change all my $.post, $.get and $.ajax ones to their type.</p>
  
  <p>But what happens if I need a special parameter from $.ajax? Or that fact I like using .post and .get.</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>I think it can take in all $.ajax options. I am still looking into it. However what I am unsure about now is can I use the same constructor for all requests that will use the same options.</p>
  
  <pre><code>First you have to construct/configure a new Ajaxmanager
  //create an ajaxmanager named someAjaxProfileName
  var someManagedAjax = $.manageAjax.create('someAjaxProfileName', {
      queue: true, 
      cacheResponse: true
  });
  </code></pre>
  
  <p>Or do I have to make the above every single time?</p>