| 
	
 | 
 Posted by G Doucet on 10/02/06 15:09 
(Note: I'm not sure if you can tell but I use Notepad for creating my html files - in case that matters). 
 
I am creating a web site which is located on my local hard drive.  It was working fine when I had win98, but now that I have winXP,  
I am getting prompted whenever one of HTML files contains active code, such as this javascript in the following html file. 
 
<html> 
<head> 
  <script type="text/javascript"> 
    alert("hello"); 
  </script> 
</head> 
<body> 
  <center> 
    <img src="test.gif" width=40 height=20 usemap="#xy" border=1> 
  </center> 
  <map name="xy"> 
    <area shape="circle" coords="10,10,10" href="testa.htm"> 
    <area shape="circle" coords="20,10,10" href="testb.htm"> 
    <area shape="circle" coords="30,10,10" href="testc.htm"> 
  </map> 
</body> 
</html> 
 
I checked my security settings to no avail.  Finally I read on the Internet that I could get rid of this prompt by inserting the  
following line at the begining of my file.    <!-- saved from url=(0014)about:internet --> 
 
Sure enough it works.  I am no longer getting prompted.  HOWEVER, my links no longer work. At least not the links in my above  
example. 
 
Then today, in the Advanced tab of my Internet Explorer's options, I found what I was looking for all along: 
[x] Authorize the execution of active content in the computer's local zone 
(Note: I translated this the best I could from this workstation which is French!) 
 
Now, I don't have to include the Mark of the Web <!-- saved from url=(0014)about:internet -->, and I am not getting prompted, my  
javascript code works, and of course, my links works. 
 
:-)  :-)  :-)  :-)  :-)  :-) 
 
Cheers, 
G Doucet
 
  
Navigation:
[Reply to this message] 
 |