title: jQuery UI tabs - getting URL of tab loaded with Ajax
body: <p>I have jQuery UI tabs using AJAX. My problem is I can't seem to retrieve the url which was loaded inside a tab.</p>
  
  <p>For example - I get URL of loaded tab like this</p>
  
  <pre><code>var links = $("#tabs &gt; ul").find("li a");
  var selectedTab = $("#tabs").tabs('option', 'selected');
  var url = $.data(links[selectedTab], 'load.tabs');
  </code></pre>
  
  <p>Where url is the url of currently opened tab.</p>
  
  <p>In the tab I have an AJAX call, which calls the same url but with some parameters, i.e.</p>
  
  <pre><code>$.ajax({
      method: 'GET',
      url = url+'?parameter=value'
  });
  </code></pre>
  
  <p>Once this call is executed, a newly created URL is called, tab is reloaded, but the variable which retrieves the loaded tab url remains the same, which means my parameters are missing. </p>
  
  <p>Ideas?</p>