Forum Moderators: open

Message Too Old, No Replies

Javascript and IE6 securuty popup thing

         

one_mind

2:26 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



Hi,

I am learning how to use javascript and have noticed a strange thing. When i go to a site that has javascript on it, the page loads fine and works well. But when i make a html file with javascrpt locally and open it, i get that yellow popup bar across the top of the browser saying there is a security risk running dynamic stuff.

How can you program a script that avoids that popup?

Thanks

kaled

3:19 pm on Oct 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It only occurs when the html page is on you local computer.

It is possible to share a directory and map it as a trusted area in IE using a UNC path. I did this once but I don't bother with it anymore (I test with FF and Opera or use Win 2000).

I think that if you save a page from the internet (onto your hard disk) IE places a marker in the head, to enable javascript. I believe you can copy this marker (html comment) and paste it into your code.

Kaled.

one_mind

3:45 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



Thanks Kaled,

I maged to put the script into a php file locally and dont get the security thing.

Cheers