I'm trying to write a web program in JavaScript where I have to make multiple ajax calls, and I need to figure out how to get the url after making an ajax call to the url. The ajax calls are made in a for loop that loops through an array of urls. So the code for the ajax request and the function that processes the return of the request look something like this:
requester = function(url){
$.ajax({
url : "http://url of my proxy?url=" + escape(url),
type : "GET",
data-type : "xml"
}).done(dataProcessor);
};
dataProcessor = function(data){
//a bunch of code, including things where I must have the url for the ajax request
};
So, how can I get that url?
function requester(url) { ... }?