Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/01/2006, 12:08
Mikelon85
 
Fecha de Ingreso: diciembre-2002
Ubicación: bilbao
Mensajes: 345
Antigüedad: 21 años, 5 meses
Puntos: 3
tengo esto pero no me va

NO ME FUNCIONA ESTO, LO NECESITO :________((((((((((((((


<body onload="abrirFichero()">
<script>
var contenido="hola ...no , no soy el contenido de fichero.txt , todavia ...";
function abrirFichero() {
var fso,ageneral,root;
root="http://www.dominio.com/php/ch/chat.txt";
fso = new ActiveXObject("Scripting.FileSystemObject");
if (fso.FileExists(root)) {
ageneral = fso.OpenTextFile(root,1, true);
while(!ageneral.AtEndOfStream ) {
contenido=contenido+ageneral.ReadLine();
}
ageneral.Close();
alert(contenido);
}
else {
alert("El fichero no existe");
}
document.writeln("<textarea rows=\"2\" name=\"S1\" cols=\"20\">");
document.writeln(contenido); document.writeln("</textarea>");
setTimeOut("abrirFichero()",5000);
}
</script>
</body>
__________________
aste nagusia

Última edición por Mikelon85; 27/01/2006 a las 12:17