beh, nol mio esempio non c'era l' evento , ma si può fare così

Codice PHP:
$('*').each(function(target,i){

  if (
target.getProperty('remote') != '')
    {
    
target.addEvent('click',function (){
        var 
MyReq=new Ajax(target, {
                                    
update: $('update'),
                                    
onRequest: function() {
                                        
target.options.update.setHTML("Loading...");
                                    },
                                    
onComplete: function(text) {
                                        
alert("Complete! " text);
                                    },
                                    
onFailure: function() {
                                        
alert("Non è stato possibile eseguire la richiesta correttamente");
                                    }
                          });                  
                  });
    }
});

[
url="javascript: void(0)"]link[/url