473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE 6 Blocks Javascript

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
7 1552
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
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
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
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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1181
by: persyn jurriaan | last post by:
hi, i'm new to this newsgroup, so: hi, to everyone involved! i'm currently searching for a script like the one used on all the daughter sites of pagina.nl (ie.: http://jazz.pagina.nl ) ......
2
2049
by: thinkfr33ly | last post by:
I have a page that inserts a block of javascript dynamically into the page "Test.html". The inserted block, "Block A", then does a document.write of another script block "Block B". This script...
2
4644
by: sam | last post by:
Hi all, I have a series of divs in 2 blocks say BLOCK1 and BLOCK2 and I want to use one click to expand/collapse all those in each block. But the code I came up with exapands all the divs in the...
4
1065
by: Darrel | last post by:
In asp.net 1.1, what is the proper method for writing variables to the aspx page that are contained within javascript blocks? example: <script language="JavaScript"> myJavascriptVariable=...
11
13374
by: Doug van Vianen | last post by:
Hi, I often like to include some JavaScript coding in my web pages to make them more interesting. Unfortunately, even when this coding is as simple as a check to see what the display width is in...
26
2684
by: brenocon | last post by:
Hi all -- Compared to the Python I know and love, Ruby isn't quite the same. However, it has at least one terrific feature: "blocks". Whereas in Python a "block" is just several lines of...
3
4496
by: Yisehaq | last post by:
Hi guys I am trying to prepare few html pages which contain OLAP cubes on a CD. The problem I have is that the popup blocker blocks the OLAP modules from being shown. Therefore, I wanted to write...
11
1545
by: v4vijayakumar | last post by:
Are there any simple javascript building blocks available? Like, Google web toolkit. But, I don't want to write code in java and then compiled into javascript. I am just looking for portable ajax/...
1
1566
by: Lobo | last post by:
I'm wondering how expensive and (in)efficient is to use Collection type javascript library functions (similar to using Blocks), instead of repeating the 'for' iterator over and over across a large...
3
1805
by: Andy B | last post by:
I need to search an xml element for blocks of text. The start of the text block will have a 5 digit number in it and i then need to read until the next 5 digit number. After this, I need to put...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.