Foros del Web » Programando para Internet » Javascript »

Actualizar dropmenu

Estas en el tema de Actualizar dropmenu en el foro de Javascript en Foros del Web. Buenas a todos.... Tengo esto en html [CODE]<html> <head> <title>Formulario prefijos</title> <script> var miPopup function abreVentana(){ miPopup = window.open("pre.html","miwin","width=300,height=3 50,scrollbars=no") miPopup.focus() } </script> </head> <body> ...
  #1 (permalink)  
Antiguo 21/11/2012, 08:11
 
Fecha de Ingreso: septiembre-2009
Mensajes: 97
Antigüedad: 14 años, 7 meses
Puntos: 0
Actualizar dropmenu

Buenas a todos....
Tengo esto en html
[CODE]<html>
<head>
<title>Formulario prefijos</title>
<script>
var miPopup
function abreVentana(){
miPopup = window.open("pre.html","miwin","width=300,height=3 50,scrollbars=no")
miPopup.focus()
}
</script>
</head>
<body>

<form name=formul>
<table cellspacing="3" cellpadding="3" border="0">
<tr>
<td width="127" align="center">Prefijo</td>
<td width="144" align="center">Número</td>
</tr>
<tr>
<td align="center"><input name="prefijo" type="text" id="prefijo"></td></td>
<td align="center"><input name="texto" type="text" id="texto" value="no actualiza!"></td>
</tr>
<tr>
<td align="center">&nbsp;</td>
<td align="center"><a href="#" onClick="abreVentana()">abre ventana</a></td>
</tr>
</table>
</form>

</body>
</html>
[CODE]

Y este es la otra ventana
Código:
<html>
<head>
    <title>Prefijos internacionales</title>
			<script>
            function ponPrefijo(pref){
                opener.document.formul.prefijo.value = pref
                //window.close()
            }
            </script>
</head>

<body>
<h1>Lista de prefijos internacionales</h1>
<form name=fprefijos>
  <p>España:
  <input name="pre" type="radio"onClick="ponPrefijo('+34')">
  <br>
    Holanda:
  <input name="pre" type="radio" onClick="ponPrefijo('+31')">
  <br>
    Gran Bretaña:
  <input name="pre" type="radio" onClick="ponPrefijo('+33')">
  <br>
    Estados Unidos:
  <input type="radio" onClick="ponPrefijo('01')">
  </p>
  <p><a href="#" onClick="window.close()">cerrar</a><br>
  </p>
</form>

</body>
</html>

La pregunta es, como puedo hacer para que los valores de la ventana pre.html se muestren en un dropmenu y no en un textbox....

Gracias

Etiquetas: formulario, html, input
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 17:46.