Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/03/2010, 17:06
bykthor007
 
Fecha de Ingreso: octubre-2009
Mensajes: 17
Antigüedad: 14 años, 6 meses
Puntos: 0
Exclamación No consigo pasar un parametro

Hola,

tengo este código:
JAVA
function change(n,m)
{
alert(n);

window.opener.document.getElementById('idClien').v alue=n;
alert(m);
}




PHP

while ($row = mysql_fetch_array($res, MYSQL_NUM)) {
$m=$row['2'];
echo '<tr>';
echo '<td align="left">';
echo '<a href="javascript:close();" title="pasar valor" onClick="change('.$row['0'].',"'.$row['2'].'");">'.$row['2'].' '.$row['3'].'</a>';

$i++;
}



Por algún motivo no coge el parametro de $row['2'], y falla.