Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/05/2012, 09:40
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: problema con etiquetas <a> dinamicas

En tu data tienes que pasar el parámetro con su nombre/valor:
Código Javascript:
Ver original
  1. $('.menuLink').live("click",function()
  2. {
  3. var id=$(this).attr('id');
  4. $.ajax({
  5. url: urlSelectXml,
  6. async: true,
  7. type: 'POST',
  8. data: {idToList: id},
  9. success: function(response)
  10. {
  11. alert(response);
  12.  
  13. }
  14.  
  15. });
  16.  
  17. });

Así en PHP, en tu controller solamente rescatas el valor:
Código PHP:
Ver original
  1. public function listAction()
  2. {
  3.          $id = $this->_getParam('idToList');
  4. }

Saludos.