Altro giro, altra corsa. Il problema, molto probabilmente, sara' simile a quello precedente o proprio uguale, tuttavia non mi sto raccapezzando.
La cernia sono io, questo e' fuor di dubbio pero'....
codice:
Microsoft JScript runtime error '800a1391'
'fso' is undefined
/mdb-database/annotazioni.inc, line 93
Il cui codice e' rispettivamente:
codice:
<%
function leggiNota(id,pt,nomeNota) {
nomeNota = nomeNota.toLowerCase();
var thefile = Server.MapPath(pt + "mdb-database/annotazioni/" + id + ".asp");
var sst = sfo.OpenTextFile(thefile);
sst.SkipLine();
while (!sst.AtEndOfStream) {
var auxNota = sst.ReadLine();
var iNota = auxNota.indexOf("=");
if (nomeNota==auxNota.substring(0,iNota)) {
sst.Close();
return auxNota.substring(iNota+1,auxNota.length);
}
}
sst.Close();
return "";
}
function scriviNota(id,pt,nomeNota,valNota) {
nomeNota = nomeNota.toLowerCase();
var thefile = Server.MapPath(pt + "mdb-database/annotazioni/" + id + ".asp");
var sst = sfo.OpenTextFile(thefile);
var arrNota = new Array();
var iNota = 0;
while (!sst.AtEndOfStream) arrNota[iNota++] = sst.ReadLine();
sst.Close();
var trovataNota = false;
for (iNota=1;!trovataNota && iNota<arrNota.length;iNota++)
if (nomeNota==arrNota[iNota].substring(0,arrNota[iNota].indexOf("="))) {
trovataNota = true;
arrNota[iNota] = nomeNota + "=" + valNota;
}
if (!trovataNota) arrNota[arrNota.length] = nomeNota + "=" + valNota;
var sst2 = fso.CreateTextFile(thefile);
for (iNota=0;iNota<arrNota.length;iNota++) sst2.WriteLine(arrNota[iNota]);
sst2.Close();
}
function cancellaNota(id,pt,nomeNota) {
nomeNota = nomeNota.toLowerCase();
var thefile = Server.MapPath(pt + "mdb-database/annotazioni/" + id + ".asp");
var sst = sfo.OpenTextFile(thefile);
var arrNota = new Array();
var iNota = 0;
var indiceNota = -1;
while (!sst.AtEndOfStream) {
arrNota[iNota] = sst.ReadLine();
if (nomeNota==arrNota[iNota].substring(0,arrNota[iNota].indexOf("="))) indiceNota = iNota;
iNota++;
}
sst.Close();
var sst2 = sfo.CreateTextFile(thefile);
for (iNota=0;iNota<arrNota.length;iNota++)
if (iNota!=indiceNota) sst2.WriteLine(arrNota[iNota]);
sst2.Close();
}
%><%
function leggiNota(id,pt,nomeNota) {
nomeNota = nomeNota.toLowerCase();
var thefile = Server.MapPath(pt + "mdb-database/annotazioni/" + id + ".asp");
var sst = sfo.OpenTextFile(thefile);
sst.SkipLine();
while (!sst.AtEndOfStream) {
var auxNota = sst.ReadLine();
var iNota = auxNota.indexOf("=");
if (nomeNota==auxNota.substring(0,iNota)) {
sst.Close();
return auxNota.substring(iNota+1,auxNota.length);
}
}
sst.Close();
return "";
}
function scriviNota(id,pt,nomeNota,valNota) {
nomeNota = nomeNota.toLowerCase();
var thefile = Server.MapPath(pt + "mdb-database/annotazioni/" + id + ".asp");
var sst = sfo.OpenTextFile(thefile);
var arrNota = new Array();
var iNota = 0;
while (!sst.AtEndOfStream) arrNota[iNota++] = sst.ReadLine();
sst.Close();
var trovataNota = false;
for (iNota=1;!trovataNota && iNota<arrNota.length;iNota++)
if (nomeNota==arrNota[iNota].substring(0,arrNota[iNota].indexOf("="))) {
trovataNota = true;
arrNota[iNota] = nomeNota + "=" + valNota;
}
if (!trovataNota) arrNota[arrNota.length] = nomeNota + "=" + valNota;
var sst2 = fso.CreateTextFile(thefile);
for (iNota=0;iNota<arrNota.length;iNota++) sst2.WriteLine(arrNota[iNota]);
sst2.Close();
}
function cancellaNota(id,pt,nomeNota) {
nomeNota = nomeNota.toLowerCase();
var thefile = Server.MapPath(pt + "mdb-database/annotazioni/" + id + ".asp");
var sst = sfo.OpenTextFile(thefile);
var arrNota = new Array();
var iNota = 0;
var indiceNota = -1;
while (!sst.AtEndOfStream) {
arrNota[iNota] = sst.ReadLine();
if (nomeNota==arrNota[iNota].substring(0,arrNota[iNota].indexOf("="))) indiceNota = iNota;
iNota++;
}
sst.Close();
var sst2 = sfo.CreateTextFile(thefile);
for (iNota=0;iNota<arrNota.length;iNota++)
if (iNota!=indiceNota) sst2.WriteLine(arrNota[iNota]);
sst2.Close();
}
%>
e la riga 93 invece:
codice:
var sst2 = fso.CreateTextFile(thefile);