Re: OT: Javascript (escribir desde un frame en otro)
| From: | Adrian | Date: | Wed, 11 Jun 2003 16:20:42 +0000 |
| Subject: | Re: OT: Javascript (escribir desde un frame en otro) | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-37285@lists.php.net to get a copy of this message | ||
No estan llegando los adjuntos a la lista le tienen algun filtro?
Aqui el codigo
--------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Ejemplo DOM</title>
<meta http-equiv="" content="text/html; charset=iso-8859-1">
<script>
//-----> Limpia el contenido de la tabla y luego la llena con la información deseada
function mostrar(mensaje)
{
var padre11, padre21, texto, salida;
//Limpiando la tabla
padre11=document.getElementById("mostrar11"); // Celda 11
padre11.removeChild(padre11.firstChild);
padre21=document.getElementById("mostrar21"); // Celda 21
padre21.removeChild(padre21.firstChild);
//Llenando la tabla
texto=(mensaje); // Celda 11
salida=document.createTextNode(texto);
padre11.appendChild(salida);
texto="!!!!!Funciona"; // Celda 21
salida=document.createTextNode(texto);
padre21.appendChild(salida);
}
</script>
</head>
<body>
<p>
<input name="Tanno" type="text" value="Hola"
size="10">
<input type="button" name="enviar" value="Enviar"
onClick="mostrar(Tanno.value)">
</p>
<table width="271" border="1" bordercolor="#0000CC"
bgcolor="#99CCFF" id="mostrar">
<tr>
<td width="247" id="mostrar11"> </td>
</tr>
<tr>
<td id="mostrar21"> </td>
</tr>
</table>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------------------
Adrian