I’m trying to load a text file from a Local Network Drive rather than from the web.
I have the following code which worked with a sendAndLoad web address and adapted it to try and get it from the drive (s:)
I have tried the following:
loadText.uniq= Math.floor(Math.random()*10000000);
loadText.sendAndLoad(“file:///s|/screen.txt”, loadText, “GET”);
loadText.target = this;
loadText.onLoad = function() {
this.target.HTML.htmlText = loadText.TEXT;
this.target.Image.loadMovie(this.Image);
};
And also with the following:
loadText.sendAndLoad(“s:\screen.txt”, loadText, “GET”);
But I keep getting the error - Error opening URL “file:///s|/screen.txt”
Where am I going wrong? Your helped would be much appreciated.