Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/08/2005, 22:10
fedexx
 
Fecha de Ingreso: mayo-2003
Ubicación: Mar del Plata
Mensajes: 373
Antigüedad: 20 años, 11 meses
Puntos: 0
Hola the wolf , parece bueno pero no se como implementarlo hice algo asi



<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Pagina nueva 1</title>

<script type="text/javascript">
function validar(){
if(document.formulario.C1.checked==true)
{
alert("Traza: \n" + "id: " + id + "\n" + "Documento: " + document.getElementById('Documento'));
var campo=document.createElement("INPUT");
campo.setAttribute("type","text");
campo.setAttribute("name","Documento");
campo.setAttribute("id","Documento");
campo.setAttribute("value","El contenido");
document.getElementsByName("filtro")[0].appendChild(campo);
alert("Creo el Campo")
}
else
{
hijo=document.getElementById("Documento");
padre=hijo.parentNode;
padre.removeChild(hijo);
alert(id + " Elimino el campo Documento");
}
}
</script>
</head>

<body>

<form method="POST" action="--WEBBOT-SELF--" name="formulario">
<input type="checkbox" name="C1" value="ON"><input type="submit" value="Enviar" name="B1"><input type="reset" value="Restablecer" name="B2"></p>
</form>



pero no parece estar bien porque no funciona que le falta ? :(