title: Multiple ajax calls with different vars in success
body: <blockquote>
    <p><strong>UPDATE:</strong> Problem was in other place. I made 3 calls with same attribute. So if you have same issue <strong>check attribute value before $.ajax</strong></p>
  </blockquote>
  
  <p>I have <strong>jQuery ajax call</strong>:</p>
  
  <pre><code>function foo(someVar){
      $.ajax({
          dataType: "json",
          url: 'http://some.json?callback=?',
          success: function(data){
              alert(someVar);
          }
      });
  }
  </code></pre>
  
  <p>If make <strong>multiple call</strong>:</p>
  
  <pre><code>getPriceByRoute('a');
  getPriceByRoute('b');
  getPriceByRoute('c');
  </code></pre>
  
  <p>will get 3 alerts with <code>c</code>.</p>
  
  <p><strong>How can I send my <code>someVar</code> to succes function?</strong></p>
  
  <p>Tried to do:</p>
  
  <pre><code>function foo(someVar){
      $.ajax({
          dataType: "json",
          //
          myVars:{someVar:someVar},
          //
          url: 'http://some.json?callback=?',
          success: function(data){
              alert(this.myVars.someVar);
          }
      });
  }
  </code></pre>
  
  <p>but same result.</p>
  
  <p>In last case I can send every next request after previous load, but hope there are other good solution.</p>