title: How can i get source element which call ajax request in "ajaxComplete" handler
body: <p>I am developing a ajax based website in this website i have make history of all requested page through ajax call. after a hour search i got a Histroy.js lib to manage my state.
  but my problem is to get element which call ajax and update only a block of div.
  so i want something like this.</p>
  
  <pre><code>&lt;a href="a.php" class="ajax" data-block-to-update="a_block"&gt; 
  &lt;div id="a_block"&gt;
  </code></pre>
  
  <p>when user click on this link a ajax call should go and after getting response i have to update a div which id is "a_block"</p>
  
  <p>here is my script</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
          var History = window.History;
          var State = History.getState();
          var $log = $('#log');
  
          History.pushState({state:'1',rand:Math.random(),content:$('#main').html(),block:'main'}, 'index', State.url);
          //History.log(State.data, State.title, State.url);
  
          $('.ajax').live('click',function(){
          var gen_url = $(this).attr('href');
          var bl = $(this).attr('data-block');
              $.ajax({
                  url: gen_url,
                  success: function(data) {
                      console.log($(this));
                    $('#'+bl).html(data);
                    History.pushState({state:gen_url,rand:Math.random(),content:data,block:bl}, gen_url, gen_url);
                  }
                    });
          return false;
          });
  
          $.ajaxSetup({
  
                });
  
          $(document).bind("ajaxComplete", function(e, xhr, settings){
                              // need to get element which make ajax request
              console.log(xhr);
              //var obj = $(e.target.activeElement);
              //alert(obj.attr('data-block'));
  
          });
  
          History.Adapter.bind(window, 'statechange', function() {
              var State = History.getState();
              if(State.data.content!="" &amp;&amp; State.data.block!="")
              {
                  //History.log(State.data, State.title, State.url);
                  $('#'+State.data.block).html(State.data.content);
              }
              else
                  return false;
          });
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>How to get element which call ajax request in "ajaxComplete" event handler?</p>