Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/03/2013, 23:56
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: problema al enviar datos del popud a pagina padre

haciendo esto funciona
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  <html xmlns="http://www.w3.org/1999/xhtml">
  3.  <head>
  4.  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5.  <title>Datos</title>
  6.  <script>
  7.  var mipopup;
  8.  function popup(){
  9.  mipopup= window.open("popup.html","PRUEBA","width=700, height=180,menubar=si");
  10.  mipopup.focus();
  11.  }
  12.  </script>
  13.  </head>
  14.  
  15.  <form id="neo" name="neo" method="post" action="#">
  16.  <table width="200" border="1">
  17.  <tr>
  18.  <td>NOMBRE</td>
  19.  <td><input type="text" name="nom" id="nom" /></td>
  20.  </tr>
  21.  </table>
  22.  <p>
  23.  <input type="button" name="Submit" value="Enviar" onclick="popup()" />
  24.  </p>
  25.  </form>
  26.  </body>
  27.  </html>

popup.html

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  <html xmlns="http://www.w3.org/1999/xhtml">
  3.  <head>
  4.  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5.  <title>Documento sin t&iacute;tulo</title>
  6.  <script>
  7.  function datos(nom){
  8.  opener.document.neo.nom.value=nom;
  9.  //window.close();
  10.  }
  11.  </script>
  12.  </head>
  13.  
  14.  <form id="form1" name="form1" method="post" action="#">
  15.  <table width="200" border="1">
  16.  <tr>
  17.  <td>NOMBRE</td>
  18.  <td><input type="text" name="nom" id="nom" value="carlos" /></td>
  19.  </tr>
  20.  <tr>
  21.  <td>APELLIDO</td>
  22.  <td><!--<input type="text" name="textfield2" />--></td>
  23.  </tr>
  24.  <tr>
  25.  <td>TELEFONO</td>
  26.  <td><!--<input type="text" name="textfield3" />--></td>
  27.  </tr>
  28.  </table>
  29.  
  30. <p>
  31.  <input type="button" name="S" id="S" value="Enviar" onclick="datos('carlos');" />
  32.  </p>
  33.  </form>
  34.  <p></p>
  35. </body>
  36.  </html>
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.