treba mi pomoc oko pisanja javascripte za iscitavanje fajla na ekran evo jednog sourca sto sam nasao samo ne znam za sto ne radi:
var fileContent='';M
var theLocation='fajl.txt';M
M
function readFileViaApplet(n) {M
document.f1.t1.value='Reading in progress...';M
document.readFile(theLocation);M
setTimeout("showFileContent()",100);M
}M
M
function showFileContent() {M
if (document.ReadURL.finished==0) {M
setTimeout("showFileContent()",100);M
return;M
}M
fileContent=document.ReadURL.fileContent;M
document.form1.textarea1.value=fileContent;M
}M