Forum Moderators: open

Message Too Old, No Replies

IE blocking javascript - help!

         

eyeinthesky

6:43 am on Oct 26, 2004 (gmt 0)

10+ Year Member



Not sure if this was discussed before.

The new Internet Explorer that comes with XP Service pack2 is blocking javascripts on my pages.

This is really annoying. How do you handle this?

BlobFisk

10:55 am on Oct 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I haven't installed SP2, but could it be as simple as changing your security level down a peg or two in the Tools > Internet Options > Security control panel?

eyeinthesky

12:58 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



Ok, maybe I was a bit ambiguous.

I actually meant, as a webmaster, how do I go around this so that visitors will see what I want them to see?

This new feature in IE has an "information bar" that automatically popups whenever an active script like javascript is detected on the webpage.

I'm now in the process of removing all javascripts on my pages as I feel this new feature will actually turn visitors off.

How do you handle this? Is javascript ready dead now?

I'm suspicious that cookies could also be blocked but not very sure.

Lance

1:41 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



Are these files that you're opening locally? As in from your desktop or some other folder? Open them from a web server and you shouldn't see that behavior.

eyeinthesky

2:02 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



Thanks Lance.

You could be right, I'm opening them locally and I just realized it works fine off the server.

Strange, but I thought the higher security setting is meant to warn the surfer of potentially harmful materials from the internet? Why only locally?

Lance

2:41 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



I'm not really sure. SP2 is "supposed to" warn you and block scripts that have a different source domain than the page.

In other words, the page at:
http:// www.example.com/index.htm

Can't contain a script sourced at www.badguy.com.

<script type="text/javascript" src="http://www.badguy.com/evil_scripts/to_share/cause_catastrophic_devastation.js />

Should cause the same kind of error message. It drove me nuts when I first installed SP2.

"What do you MEAN it's unsafe? I JUST wrote it and saved it to my desktop!"

Lance

9:15 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



ACK! Here's the fix:

Tools -> Internet Options -> Advanced

"Security Section" (bottom)

Check Box:

"Allow active content to run files in My Computer"

eyeinthesky

10:49 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



Thanks, Lance :)