By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,519 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,519 IT Pros & Developers. It's quick & easy.

IE 6 Blocks Javascript

P: n/a
Can someone help me here.

I have a web site with some javscript. When I upgraded to WinXP IE6 etc I
found that opening my site I get an Information Bar message that Internet
Explorer has restricted this file from showing active content. Presumably
anyone else accessing my site gets the same message.
However when I access other sites with javascript I don't get the message.
Ergo it must be my code that is the problem.
Mike
Jul 23 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Mike Scholl wrote:
Can someone help me here.

I have a web site with some javscript. When I upgraded to WinXP IE6 etc I
found that opening my site I get an Information Bar message that Internet
Explorer has restricted this file from showing active content. Presumably
anyone else accessing my site gets the same message.
However when I access other sites with javascript I don't get the message.
Ergo it must be my code that is the problem.


Search the groups.google.com archives of comp.lang.javascript for the
string "Mark of the Web" and read the thread. It will answer your
question, and, tell you the solution.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2

P: n/a
Hi,

If you test the page *locally* you'll get the message.
But if you upload it and see it online, you won't.
The bar is there to warn you that the script is accessing something in
your *local* hard-drive, like images or text-files or something.

Kien

Randy Webb wrote:
Mike Scholl wrote:
Can someone help me here.

I have a web site with some javscript. When I upgraded to WinXP IE6
etc I found that opening my site I get an Information Bar message that
Internet Explorer has restricted this file from showing active
content. Presumably anyone else accessing my site gets the same message.
However when I access other sites with javascript I don't get the
message. Ergo it must be my code that is the problem.

Search the groups.google.com archives of comp.lang.javascript for the
string "Mark of the Web" and read the thread. It will answer your
question, and, tell you the solution.

Jul 23 '05 #3

P: n/a
Kien wrote:
Hi,

If you test the page *locally* you'll get the message.
But if you upload it and see it online, you won't.
The bar is there to warn you that the script is accessing something in
your *local* hard-drive, like images or text-files or something.
NO. The bar is not there for that reason. Had you bothered to read the
article/thread I mentioned you would have found that out. An empty
script block as such:

<script type="text/javascript"></script>

will cause that bar to be present. Now, how is that script above
"accessing something on your local hard drive"?

And read the group FAQ. It will do you good.
Kien

Randy Webb wrote:
Mike Scholl wrote:
Can someone help me here.

I have a web site with some javscript. When I upgraded to WinXP IE6
etc I found that opening my site I get an Information Bar message
that Internet Explorer has restricted this file from showing active
content. Presumably anyone else accessing my site gets the same message.
However when I access other sites with javascript I don't get the
message. Ergo it must be my code that is the problem.


Search the groups.google.com archives of comp.lang.javascript for the
string "Mark of the Web" and read the thread. It will answer your
question, and, tell you the solution.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Jul 23 '05 #4

P: n/a
Randy Webb wrote:
Kien wrote:
Hi,

If you test the page *locally* you'll get the message.
But if you upload it and see it online, you won't.
The bar is there to warn you that the script is accessing something in
your *local* hard-drive, like images or text-files or something.

NO. The bar is not there for that reason. Had you bothered to read the
article/thread I mentioned you would have found that out. An empty
script block as such:

<script type="text/javascript"></script>

will cause that bar to be present. Now, how is that script above
"accessing something on your local hard drive"?

And read the group FAQ. It will do you good.


Hi Randy,

OK I take that back but ...
The "Mark of the Web" didn't work.
I tested it locally and the bar is still there.

Isn't there a way to manually and locally switch of this annoying
"feature" of IE6 WXP sp2?

Kien
Jul 23 '05 #5

P: n/a
Kien wrote:
Randy Webb wrote:
Kien wrote:
Hi,

If you test the page *locally* you'll get the message.
But if you upload it and see it online, you won't.
The bar is there to warn you that the script is accessing something
in your *local* hard-drive, like images or text-files or something.
NO. The bar is not there for that reason. Had you bothered to read the
article/thread I mentioned you would have found that out. An empty
script block as such:

<script type="text/javascript"></script>

will cause that bar to be present. Now, how is that script above
"accessing something on your local hard drive"?

And read the group FAQ. It will do you good.


Hi Randy,

OK I take that back but ...
The "Mark of the Web" didn't work.
I tested it locally and the bar is still there.


Sample code? I have never had it fail in IE6 XP SP2.
Isn't there a way to manually and locally switch of this annoying
"feature" of IE6 WXP sp2?


I think, not sure, that you can edit the registry but not sure.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #6

P: n/a
"Kien" <ca*********@hotmail.com> wrote in message
news:Uo********************@news-server.bigpond.net.au...
Randy Webb wrote:
Kien wrote:
Hi,

If you test the page *locally* you'll get the message.
But if you upload it and see it online, you won't.
The bar is there to warn you that the script is accessing something
in your *local* hard-drive, like images or text-files or something.

NO. The bar is not there for that reason. Had you bothered to read
the article/thread I mentioned you would have found that out. An
empty script block as such:

<script type="text/javascript"></script>

will cause that bar to be present. Now, how is that script above
"accessing something on your local hard drive"?

And read the group FAQ. It will do you good.


Hi Randy,

OK I take that back but ...
The "Mark of the Web" didn't work.
I tested it locally and the bar is still there.


Correctly inserting the "Mark of the Web" does work:

<!-- saved from url=(0014)about:internet -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Title</title>
</head>
<body>
</body>
</html>

The above places the script in the Internet zone, and therefore IE does
not block any script, since script in the Internet zone can not do the
damage that one running in the My Computer zone can.
Isn't there a way to manually and locally switch of this annoying
"feature" of IE6 WXP sp2?


Yes.

Tools > Internet Options > Advanced
Security section
check "Allow active content to run in files on My Computer"

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #7

P: n/a
JRS: In article <ke***************@news2.mts.net>, dated Wed, 23 Feb
2005 19:57:04, seen in news:comp.lang.javascript, Grant Wagner
<gw*****@agricoreunited.com> posted :

<FAQENTRY>

Correctly inserting the "Mark of the Web" does work:

<!-- saved from url=(0014)about:internet -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
...
The above places the script in the Internet zone, and therefore IE does
not block any script, since script in the Internet zone can not do the
damage that one running in the My Computer zone can.


IMHO, the Mark should be in the FAQ.

Since there seems to be some difficulty or delaying element as regards
FAQ updates, can the newsgroup itself develop an item on the Mark,
suitable for direct quotation or insertion?

The above is no doubt correct, but IMHO a little more explanation would
be appropriate for a FAQ response.

--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.