Forum Moderators: open

Message Too Old, No Replies

External Javascript blocked by IE

         

Rick_K

5:44 am on Jan 5, 2005 (gmt 0)



Hi all.
I placed my javascript content in an external js file. I have windows xp professional, with service pack 2 installed.

The script is a simple image flip. It works fine when included in my website, but when I place it in an external js, IE "blocks" it and asks for the user to allow this script.

Is there a workaround? I'd rather keep the js in an external file for code simplicity, but if IE blocks site visitors from seeing the images, I guess I need to put the script back in the website.

Any advice?

Thanks to all that reply.
Rick_K.

adni18

1:04 pm on Jan 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a new script protection feature in IE, and only occurs with local files. If it is on the Internet, it won't matter.

Bernard Marx

8:30 pm on Jan 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you save a webpage in IE to file, the 2nd line of code is added by the browser.
Here's what it looked like when I saved this page:

<!-- saved from url=(0046)http://www.webmasterworld.com/forum91/2980.htm -->

MS calls this "The mark of The Web".

My understanding is that pages with this mark are not considered part of the Local Security Zone when opened. MS says that pages with the mark are therefore not subject to its new ('baby out with the bathwater') clampdown on local file security. So adding this mark to pages you are testing will hopefully allow you to get on with your scripting life without having to change your security settings.

rocknbil

3:17 am on Jan 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



^ ^ ^ THAT
Is an absolutely awesome bit of info. And to think I used to cringe whenever I saw those . . . . . :-)

Just for everyone's info, I have plain HTML pages with flash objects that do this, local kicks a blocked content warning, on the web it's fine.