Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/01/2012, 12:35
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Cerrar popup y refrescar ventana principal

Es que tu primer popup esta mal, no estas enviando nada, te dejo la forma correcta de hacer que el action de un form pase sus resultados a una nueva ventana

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <script type="text/javascript">
  8. //<![CDATA[
  9.  
  10. var nvcarga= null;
  11. function popupForm(nombre,w,h){
  12. var winleft = (screen.width-w)/2;
  13. var wintop = (screen.height-h)/2;
  14. caracteristicas='height='+h+',width='+w+',top='+wintop+',left='+winleft+',titlebar=no,scrollbars=yes,location=0,toolbar=0,resizable=yes'
  15. nvcarga=window.open("",nombre,caracteristicas);
  16. if(parseInt(navigator.appVersion) >= 4){nvcarga.window.focus();}
  17. return true;
  18. }
  19.  
  20. //]]>
  21. </head>
  22. <form name="form1" action="form2.html" method="get" onsubmit="return popupForm(this.target,100,300)" target="ventana1">
  23. <input type="text" name="nombre" />
  24. <input type="submit" value="Enviar" />
  25. </form>
  26. </body>
  27. </html>


Soluciona eso primero

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.

Última edición por emprear; 13/01/2012 a las 14:15