Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/08/2012, 08:41
Avatar de Sumerio
Sumerio
 
Fecha de Ingreso: octubre-2009
Mensajes: 195
Antigüedad: 14 años, 7 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">