I am using the following text on my web page. The first time it is invoked, I get the error message "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"
How do I get rid of that message??? I understand that generally you do not want to run a web application that accesses local files but what I am building will not run on the internet. Its only job is to read this text file and then use the text for something.
function dialog()
{
var fso, ts, s;
var ForReading = 1;
fso = new ActiveXObject("Scripting.FileSystemObject"
// Read the contents of the file.
ts = fspenTextFile("c:\\greeting.txt", ForReading);
s = ts.ReadLine();
var userInput = document.Form1.input.value
LifeFXPlayer.PlayText(s);
ts.Close();
return false; // Don't reload the Player control
}
How do I get rid of that message??? I understand that generally you do not want to run a web application that accesses local files but what I am building will not run on the internet. Its only job is to read this text file and then use the text for something.
function dialog()
{
var fso, ts, s;
var ForReading = 1;
fso = new ActiveXObject("Scripting.FileSystemObject"
// Read the contents of the file.
ts = fspenTextFile("c:\\greeting.txt", ForReading);
s = ts.ReadLine();
var userInput = document.Form1.input.value
LifeFXPlayer.PlayText(s);
ts.Close();
return false; // Don't reload the Player control
}