Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/10/2012, 13:58
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 16 años, 8 meses
Puntos: 1012
Respuesta: Enviar datos de un iframe via POST

cometes dos errores
1. hacer dependiente el envío del formulario a que javascript esté activado
2. uso de librería

mi presentimiento era acertado
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="es" xml:lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>

<form name="f" action="elquesea.php" method="post">
<input type="text" name="c1" id="c1" value="" />
<input type="text" name="c2" id="c2" value="" />

<iframe src="Frame.html" width="500" height="300" name="datos" id="datos"></iframe>

<input type="submit" value="enviar" />

</form>
</body>
</html>
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="es" xml:lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script type="text/javascript">
function fnc(valor) {
window.parent.f.c2.value = valor;
}
</script>
</head>
<body>

<form>
<input type="text" name="txt_Direccion" id="txt_Direccion" onkeyup="fnc(this.value)" />
</form>

</body>
</html>
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}