Salve a tutti, mi serve aiuto per quanto riguarda lo script sotto elencato. Il programma legge un file txt e lo stampa su schermo, e il problema risiede nel fatto che in locale funziona e quando viene pubblicato no. Mi hanno detto che poteva essere un problema del server che ospita il sito , inquanto non aveva le activex attivate. Ma avendo chiamato piu' volte mi hanno rassicurato che da loro era tutto ok. Ho pensato anche a una sintassi sbagliata sulla path del file, ma mi sembra strano visto che come ripeto, in locale è funzionante. Se qualcuno avesse un'idea mi scrivesse al forum o all'e-mail dmazelli@tiscali.it grazie





<html>

<SCRIPT LANGUAGE="JavaScript" >


function LeggiFile()
{

var OggFile
var origine
var OggTextStream
var stringa
var fso

origine = ".//aggiornamenti.txt"

try
{
fso = new ActiveXObject("Scripting.FileSystemObject")
OggFile = fso.OpenTextFile(origine,1)
}
catch(e)
{
alert(origine + ' ' + e.number + ' ' + e.description)
return 0
}

try
{
document.writeln ("<body bgcolor='black'>")
document.writeln ("<font color='white' style='font-size=35'>")


while (stringa = OggFile.ReadLine())
{
document.writeln (stringa + "
")

}
document.writeln ("</font>")
document.writeln ("</body>")

}


catch(e)
{
OggFile.close()
}

}

</SCRIPT>


<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>Nuova pagina 1</title>
</head>



<body text="#000000" style="font-size: 13 pt; font-family:aria; font-weight:bold; margin-left:15; text-align:justify" topmargin="30" onload="LeggiFile()">



</body>
</html>