I've got this:
function foo (a) {
var bar = arguements[1];
new Ajax.Request('foo/bar/site',{
method: 'get',
onSuccess: function (r) {
if (bar) { ... }
}
});
}
Now, I can't for the life of me figure out how to get 'bar' within the onSuccess function to work. I hope that makes sense!