views:

45

answers:

2

The name of the selected link is the value that needs to be submitted to the controller from an Ajax form.

A: 

I'd do it like so using mootools where the links you want to capture clicks on have the class 'selectedLinks':

var links = $$('a.selectedLinks');
for(var i = 0; i < links.length; i++){
    links.addEvent('click', function(){
       var myRequest = new Request({method: 'get', url: 'yourRequestHandler.php'});
       myRequest.send('name=' + this.getProperty('name'));
       return false;
    });
}
Pat
A: 

used Ajax.ActionLinks

zsharp