A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Security and Administration with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ActiveX warning on CreateObject("Scripting.FileSystemObject")



 
 
Thread Tools Display Modes
  #1  
Old December 21st 03, 10:45 AM
Bill Gauthier
external usenet poster
 
Posts: n/a
Default ActiveX warning on CreateObject("Scripting.FileSystemObject")

I have a simple html page on my local P that populates an
text box from a file by using a vbscript using the
Scripting.FileSystemObject. Whenever I load or refresh
the page, I get the following pop-up message...

"The ActiveX control on this page might be unsafe to
interact with other parts of the page. Do you want to
allow this interaction?"

I have tried adjusting the Internet Options security
settings for Internet and Local to enable everything but I
still get the pop-up. What can I do to stop this?

Here's the html file and the datafile I'm feeding it
with...

c:\readfile.htm
html
head
Script Language="vbscript"
sub ReadDatafileVB()
dim theINPUTFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set theINPUTFile=fso.OpenTextFile("c:\datafile.txt")
Do While theINPUTFile.AtEndOfStream True
var1.value = theINPUTFile.ReadLine
Loop
end sub

/Script


/head
body onload="ReadDatafileVB"
INPUT name=var1 BR
/body
/html



c:\datafile.txt
1
2
3
4
Ads
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 07:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.