View Full Version : Always ask for allowed script

11-18-2005, 10:08 AM
Dear member ..

I have made some HTML code using Javascript for custom header and footer for template page. The coding consist of header definition and also script that executed to run a clock program (load on first time page called).

Maybe for more clear view I will attach the code instead,

<SCRIPT language="JavaScript" src="scripts/Script_General.js"></SCRIPT>
<SCRIPT language="JavaScript" src="scripts/Script_Header.js"></SCRIPT>
<SCRIPT language="JavaScript" src="scripts/Clock.js"></SCRIPT>
<LINK href="CSS/STYLE.CSS" type="text/css" rel="stylesheet">
<BODY onLoad=goforit()>

<!--UPPER HEADER--><span id="headertext"></span><!--UPPER HEADER-->

Everytime I load this page (1st time from my flashdisk/web dir/web server) always come up with those warning. Is there something wrong with the coding or maybe the placement of the script?

I know this is maybe look easy, but it give me a headeache :mad: :D
Ok thanks for the attentions and hope getting new bright shiny enlightment from all of you ;) .


[seageath] / [sigit.aji]

11-18-2005, 04:39 PM
That only happens locally as a security measure. As far as IE is concerned, javascript is ActiveX. Click on the bar and click on allow and click on yes. Once your page is live, this will not happen. You can also give your page 'the mark of the web'. That way it will not display the security bar locally either. Put this right after your <html> tag like so:

<!-- saved from url=(0014)about:internet -->
<!-- this and above comment should be removed for live, non-demo use -->

But, navigating away from the page to another local page, or including another local page on it via a frame or an iframe can be problematical if said page does not also have 'the mark of the web' on it.