Foros del Web » Programando para Internet » Javascript »

Problema al Abrir PopUp desde otro PopUp

Estas en el tema de Problema al Abrir PopUp desde otro PopUp en el foro de Javascript en Foros del Web. Hola tengo que Abrir un PopUp desde otro PopUp, pero no me funciona, solo lo abre en el mismo popup, no entiendo porque, si estoy ...
  #1 (permalink)  
Antiguo 27/08/2012, 08:41
Avatar de Sumerio  
Fecha de Ingreso: octubre-2009
Mensajes: 195
Antigüedad: 14 años, 6 meses
Puntos: 6
Pregunta Problema al Abrir PopUp desde otro PopUp

Hola tengo que Abrir un PopUp desde otro PopUp, pero no me funciona, solo lo abre en el mismo popup, no entiendo porque, si estoy aplicando los mismo el mismo javascript en el otro popup para que se me abra otro.

Mi codigo es el siguiente:

Código:
<script>
//centran los popups
var windowWidth1 = 1100;
var windowHeight1 = 365;
var windowTop1 = parseInt((screen.availHeight/2) - (windowHeight1/2));
var windowLeft1 = parseInt((screen.availWidth/2) - (windowWidth1/2));

var windowSizeArray = [
"width="+windowWidth1+",height="+windowHeight1+",left="+windowLeft1+",top="+windowTop1+", screenX="+windowLeft1+",screenY="+windowTop1+",scrollbars=0,location=0,toolbar=0,directories=0,toolbar=0,status=0"];

jQuery(document).ready(function(){
	    $('.newWindow').click(function (event){
	        var url = $(this).attr("href");
	        var windowName = "popUp";
	        var windowSize = windowSizeArray[  $(this).attr("rel")  ];
	        window.open(url, windowName, windowSize);
	        event.preventDefault();

	    });
	});
	
	jQuery(document).ready(function() {
		var link = $('a');
		link.css('background-color', '#FFFFFF');
		link.css('font-size', '9pt');
		link.css('color', '#000000');
		link.css('text-decoration', 'none');
	});
	
	jQuery(document).ready(function(){
	    jQuery('#regresar').click(function(event){
	    	window.open('${ctx}/cuerpoAgua/init.action','_self');
	    });
	});
Y para responder al evento el hipervinculo es:

<a id="cap1" href="${ctx}/cuerpoAgua/openwindow.action?forward=capitulo1" rel="22" class="newWindow">
  #2 (permalink)  
Antiguo 29/08/2012, 02:30
 
Fecha de Ingreso: agosto-2012
Mensajes: 36
Antigüedad: 11 años, 8 meses
Puntos: 16
Respuesta: Problema al Abrir PopUp desde otro PopUp

Hombre, hay mucha gente a la que le molestan los PopUp... ¿Seguro que no hay otra solución?

Etiquetas: funcion, popup
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:47.