Hi all,
I'm tryng to read a ascii file from rsp page in javascript.

I'm not a javascript developer... just copy and paste.. :-)

I've find this funzction:

Code:
function readText(files){

	if(files){
		window.alert(files);
		var reader = new FileReader();
		reader.onload = function (e) {  
			var output=e.target.result;
					
			window.alert(output);
			
			var divTabella = document.getElementById("DivTabella");
			divTabella.innerHTML = output;
		
		};
		
		
		reader.readAsText(files);
	}
};
but if I call:
readText('../../library/file.html');

not work..

I've put the file in c:\lianja\library folder...

thank a lot
Fabio