Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/05/2010, 09:10
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: petición get con jquery

Vos tenes esto en un link:

<?php echo $id; ?>

Que imprimiría un numero.

Pero no tenes ningun texto, y estas tratando de obtener el $id como si fuera un texto!

$(this).text()

Entonces, la solución es imprimir el $id dentro de cualquier atributo que pueda tener el link. Por ejemplo, en el title:

<a href="info_portfolio.php" title="<?php echo $id; ?>">

Y luego obtenerlo así:

$(this).attr("title");