Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Control error

Status
Not open for further replies.

LanceSilk

Programmer
Joined
Oct 8, 2001
Messages
2
Location
US
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 = fso.OpenTextFile("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
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top