I use in my Ajax.Request my jsp. (Prototype)
Somehow I can pass extra parameters in the anonymous function onComplete?
For example,
function save() {
var pars = "param1=date";
new Ajax.Request('algo.ctr', {
parameters: pars,
onComplete: f,
});
}
var f = function (e) {
alert(e.status);
}
I want to use parameter e but also other.
I do not want to use global variables.
The idea is to run multiple concurrent requests and when each one finishes doing something with an element that I put.