title: Ext Js Ajax call response
body: <p>I am working with Ext Js Ajax calls. I am specifying a URL in as the <code>url:</code> value which will redirect to some other URL after execution. What my question is, is there anyway to know the new redirected URL..??</p>
  
  <p>I tried with <code>data.responseText</code> and i failed to retrieve the new URL. Next I used <code>JSON.stringify(data)</code> method, and i get the URL which I passed when using this <i> Ajax Call </i>, not the new <b> redirected </b> one.</p>
  
  <p><b>Note: </b> I cant use a browser to open the URL to see the new one, since it opens a new Browser window..</p>
  
  <p><b>CODE:</b></p>
  
  <pre><code>Ext.Ajax.request({
      url:'https://www.facebook.com/dialog/oauth?client_id=myAppId&amp;' +
          'response_type=token&amp;redirect_uri=https://www.facebook.com' +
          '/connect/login_success.html',
      dataType: 'json',
      type: 'GET',
      success: function (data, status) {
          Ext.Msg.alert(data.responseText);
          if (data.responseText=='Success') {
              // Here i need to use the new redirected URL
          }
      },
      error: function(error) {
          Ext.Msg.alert('error');
      }
  });
  </code></pre>