Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/08/2008, 11:29
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: ahora el window.open me funciona en firefox pero en IE no me funciona

Tenés algunos problemas con comillas y otras cosas. Probá así:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>test</title>
<
script>

function 
AbrirCentrado(Url,NombreVentana,width,height,extras) {
var 
largo width;
var 
altura height;
var 
adicionalesextras;
var 
top = (screen.height-altura)/2;
var 
izquierda = (screen.width-largo)/2nuevaVentana=window.open(Url,NombreVentana,'width=' largo ',height=' altura ',top=' top ',left=' izquierda +extras);
nuevaVentana.focus();
}

</script>

</head>

<body>


y la llamo desde ak:

<a href="javascript:AbrirCentrado('paginas/ing_usu.php','formulario','400','280','');">Nuevo Usuario</a>
ya lo puse sin espacios e igual no me funciona que puedo hacer....
</body>
</html>