Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/02/2010, 18:29
paulkees
 
Fecha de Ingreso: octubre-2004
Mensajes: 768
Antigüedad: 19 años, 6 meses
Puntos: 3
popup en variable php

Hola a todos...

Dentro de una variable tengo un enlace y quiero que se abra en un popup. Lo hago de esta manera, pero me abre una ventana aparte como si no hiciera caso al onClick. La verdad que no me doy cuenta donde estoy fallando!

Por favor, alguien me puede dar una ayuda?

Código PHP:
if ($extra_infostring $datos[extra_info_user]) {
$extra_infostring "<td style='vertical-align:top;'>
<a href='extra_info_user.php?userID="
.$datos[id]."' 
target='popup' onClick='window.open(this.href, 
this.target, 'width=300,height=400'); return false;'>
<img style='border:0;' src='images/extra_info.gif' alt=''/></a></td>"
;
}
else 
$extra_infostring "<td>&nbsp;</td>";
echo 
" $extra_infostring "