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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX object warning popup problem

Status
Not open for further replies.

Waidesworld

Technical User
Oct 1, 2002
121
US
I have a scrpt on a page to copy a file to two different locations and then when the page refreshes to overwrite it and do it again. I know it isn't the best programming method but it almost works for me. However I get the ActiveX warning popup everytime the page refreshes. I have lowered all my security warnings to zero with no success. I can't add it as a trusted site because it is local. The whole script is local. Is there any way I can get help here.

Page is as follows:
<html>
<head>File copy in progress...Don't close this page.</head>
<SCRIPT LANGUAGE="JavaScript">

//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:15"

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->


<!--
myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
file = myActiveXObject.GetFile("c:\\test\\test.txt");
file.copy("c:\\test1\\meantimes.txt", true);
file.copy("c:\\test2\\meantimes.txt", true);
// -->
</SCRIPT>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top