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 pixels so that pictures on the
page can be adjusted to better fit the display, Internet Explorer detects
the coding and blocks it. Of course the user can click on the message
displayed above the web page to allow "the active component" but many of the
people who receive my pages are seniors and/or are not computer
sophistocated enough to feel comfortable doing this. They think that the
JavaScript coding might be some virus or whatever.
I have been using JavaScript for several years and may be using outdated
coding. Could this be causing the problem? Is there some way to use
JavaScript within a web page without having the security problem pop up?
An example of the coding I use is in the page at http://members.shaw.ca/burdick/checkup/checkup.htm
Thank you.
Doug 11 13239
Doug van Vianen wrote: 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 pixels so that pictures on the page can be adjusted to better fit the display, Internet Explorer detects the coding and blocks it. Of course the user can click on the message displayed above the web page to allow "the active component" but many of the people who receive my pages are seniors and/or are not computer sophistocated enough to feel comfortable doing this. They think that the JavaScript coding might be some virus or whatever.
I have been using JavaScript for several years and may be using outdated coding. Could this be causing the problem? Is there some way to use JavaScript within a web page without having the security problem pop up?
An example of the coding I use is in the page at
http://members.shaw.ca/burdick/checkup/checkup.htm
Thank you.
The problem isn't the Javascript - it's in your browser settings. It
works fine for me.
--
"The most convoluted explanation that fits all the available and made-up
facts is the most likely to be believed by conspiracy theorists"
Randy Webb wrote: Tony said the following on 6/8/2006 4:52 PM: The problem isn't the Javascript - it's in your browser settings. It works fine for me.
It's not even that difficult. It makes a huge difference when you test it from a server as opposed to testing it locally.
How so? I just downloaded the page & ran it - seemed to work the same.
Perhaps I missed something, but how would running from a server make any
difference with how javascript works?
--
"The most convoluted explanation that fits all the available and made-up
facts is the most likely to be believed by conspiracy theorists"
Tony said the following on 6/8/2006 9:06 PM: Randy Webb wrote: Tony said the following on 6/8/2006 4:52 PM: The problem isn't the Javascript - it's in your browser settings. It works fine for me.
It's not even that difficult. It makes a huge difference when you test it from a server as opposed to testing it locally.
How so? I just downloaded the page & ran it - seemed to work the same. Perhaps I missed something, but how would running from a server make any difference with how javascript works?
Security Zone that the document is in.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Doug van Vianen wrote: Is there some way to use JavaScript within a web page without having the security problem pop up?
Your page works fine when run from the web (under default IE security
settings).
When you run it *from disk*, IE runs it under the security settings for
the "Local Computer" zone. These days, those settings are usually
*more* severe, not *less* severe, than the settings for the Internet
zone. Hence the warnings you're referring to.
To test you page locally, ie. running it from your hard dsk, you need
to tell IE to run it under the Internet zone security settings, not the
Local Computer zone settings. To do that, just add the following line
to the top of the file, and leave it in there permanently:
<!-- saved from url=(0014)about :internet -->
This is called, the "mark of the web" or MOTW. Google those terms for
more information.
Some people mistakenly think that the MOTW is a security problem.
That's not true, it shows a misunderstanding of how the security
features work. It's not a security hole of any description.
If you reply to this post, please note that l will not be in a position
to read this thread again for several days.
HTH,
TC (MVP MSAccess) http://tc2.atspace.com
Hi Tony,
Thank you for your response.
Yes, I understand that it is the Internet Explorer. But it is not my
Internet Explorer that I am worried about. It is the Internet Explorer of
the people who view my web pages. Many are seniors or others that are not
too computer literate and even some that are somewhat afraid of
computers--especially of the viruses etc. that they hear about all the time.
These people often have their settings set to block anything except the very
innocuous material. Perhaps it is the people they purchase their computers
from who do not want to be bothered by having to remove viruses or other
malicious things.
But I was hoping that perhaps there were some things I could do in the
JavaScript coding to help matters. I guess not.
Thank you for your comments.
Doug.
"Tony" <to****@dslextreme.WHATISTHIS.com> wrote in message
news:12*************@corp.supernews.com... Doug van Vianen wrote: 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 pixels so that pictures on the page can be adjusted to better fit the display, Internet Explorer detects the coding and blocks it. Of course the user can click on the message displayed above the web page to allow "the active component" but many of the people who receive my pages are seniors and/or are not computer sophistocated enough to feel comfortable doing this. They think that the JavaScript coding might be some virus or whatever.
I have been using JavaScript for several years and may be using outdated coding. Could this be causing the problem? Is there some way to use JavaScript within a web page without having the security problem pop up?
An example of the coding I use is in the page at
http://members.shaw.ca/burdick/checkup/checkup.htm
Thank you.
The problem isn't the Javascript - it's in your browser settings. It works fine for me.
-- "The most convoluted explanation that fits all the available and made-up facts is the most likely to be believed by conspiracy theorists"
Randy Webb wrote: Tony said the following on 6/8/2006 9:06 PM:
Randy Webb wrote:
Tony said the following on 6/8/2006 4:52 PM:
The problem isn't the Javascript - it's in your browser settings. It works fine for me.
It's not even that difficult. It makes a huge difference when you test it from a server as opposed to testing it locally.
How so? I just downloaded the page & ran it - seemed to work the same. Perhaps I missed something, but how would running from a server make any difference with how javascript works?
Security Zone that the document is in.
Ah - didn't think about that one :) I don't exactly use IE that much
anymore.
--
"The most convoluted explanation that fits all the available and made-up
facts is the most likely to be believed by conspiracy theorists"
Randy Webb wrote: Tony said the following on 6/8/2006 9:06 PM: Randy Webb wrote: Tony said the following on 6/8/2006 4:52 PM:
The problem isn't the Javascript - it's in your browser settings. It works fine for me.
It's not even that difficult. It makes a huge difference when you test it from a server as opposed to testing it locally.
How so? I just downloaded the page & ran it - seemed to work the same. Perhaps I missed something, but how would running from a server make any difference with how javascript works?
Security Zone that the document is in.
-- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dear Sir,
And yet the Security Zone is used for blocking or allowing access to
Cookies, not JavaScript.
To the Original Poster:
Dear Sir,
You may be able to use VBScript instead, as most browsers do not
currently block VBScript, and VBScript is fairly similar to JavaScript
in it's functions. Otherwise, you can't pass the security blocking of
MSIE or other browsers unless the client specifies in their settings
that they want to allow JavaScript, or if they allow JavaScript on that
page through the security pop-up, but from your explanation of the
people who use your site, "seniors", probably would not know how to do
this, nor why they would do this.
By the way, that was pretty funny.
I have the honor to remain your most humble and Ob't Sv't in our war
against the King.
--
Patrick Reilly
1st Coy.
Colonel Seth Warner's Regiment pe********************@gmail.com said the following on 6/10/2006 11:35 AM: Randy Webb wrote: Tony said the following on 6/8/2006 9:06 PM: Randy Webb wrote: Tony said the following on 6/8/2006 4:52 PM: > The problem isn't the Javascript - it's in your browser settings. It > works fine for me. It's not even that difficult. It makes a huge difference when you test it from a server as opposed to testing it locally. How so? I just downloaded the page & ran it - seemed to work the same. Perhaps I missed something, but how would running from a server make any difference with how javascript works? Security Zone that the document is in.
-- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dear Sir, And yet the Security Zone is used for blocking or allowing access to Cookies, not JavaScript.
I will give you two to one that you didn't bother testing that as what
you say is patently false. The Security Zone can be totally opposite
from the Local Zone and the Internet Zone and is used for scripting as
well as cookies or any other setting in IE.
To the Original Poster: Dear Sir, You may be able to use VBScript instead, as most browsers do not currently block VBScript, and VBScript is fairly similar to JavaScript in it's functions.
VBScript is IE only but that aside, if you block Javascript you block
VBScript as well. The setting is not to disable Javascript, it is to
disable Scripting.
Otherwise, you can't pass the security blocking of MSIE or other browsers unless the client specifies in their settings that they want to allow JavaScript, or if they allow JavaScript on that page through the security pop-up, but from your explanation of the people who use your site, "seniors", probably would not know how to do this, nor why they would do this. By the way, that was pretty funny.
And everything you said applies to VBScript as well on a webpage, other
than that VBScript is IE only so it wont work in any other browser
anyway no matter *what* the security settings are.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
I have a similar problem. I tried putting the Mark of the Web code in
when testing locally. Yes, the annoying warning goes away but it seems
to disable links to pages outside the one with the code inserted.
Next, I tried editing the Internet Explorer (v6) settings to allow
scripting by setting 'enable' on anything to do with scripts in both
the local and internet zone. It still blocks any javascript as if I
hadn't even changed the settings. -and yes, I tried from the
Administrator account too. This problem came up when I had my
workstation changed from 2000 to XP. To test the javascript in the
pages, I have to click the 'allow blocked content' setting every time I
open the browser again.
I doubt that your scripts are the cause of the problem. I have pages
with very simple rollover effects made using Macromedia Dreamweaver 8
triggering it. Do you think Microsoft is hoping to wipe out javascript
in the guise of security? Can't IE tell the difference between a
commonly used javascript and something more harmful?
Hopefully, IE developers take notice of these issues.
Randy Webb wrote: pe********************@gmail.com said the following on 6/10/2006 11:35 AM: Randy Webb wrote: Tony said the following on 6/8/2006 9:06 PM: Randy Webb wrote: > Tony said the following on 6/8/2006 4:52 PM: >> The problem isn't the Javascript - it's in your browser settings. It >> works fine for me. > It's not even that difficult. It makes a huge difference when you test > it from a server as opposed to testing it locally. How so? I just downloaded the page & ran it - seemed to work the same. Perhaps I missed something, but how would running from a server make any difference with how javascript works? Security Zone that the document is in.
-- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dear Sir, And yet the Security Zone is used for blocking or allowing access to Cookies, not JavaScript.
I will give you two to one that you didn't bother testing that as what you say is patently false. The Security Zone can be totally opposite from the Local Zone and the Internet Zone and is used for scripting as well as cookies or any other setting in IE.
To the Original Poster: Dear Sir, You may be able to use VBScript instead, as most browsers do not currently block VBScript, and VBScript is fairly similar to JavaScript in it's functions.
VBScript is IE only but that aside, if you block Javascript you block VBScript as well. The setting is not to disable Javascript, it is to disable Scripting.
Otherwise, you can't pass the security blocking of MSIE or other browsers unless the client specifies in their settings that they want to allow JavaScript, or if they allow JavaScript on that page through the security pop-up, but from your explanation of the people who use your site, "seniors", probably would not know how to do this, nor why they would do this. By the way, that was pretty funny.
And everything you said applies to VBScript as well on a webpage, other than that VBScript is IE only so it wont work in any other browser anyway no matter *what* the security settings are.
-- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
"TaraC" <ta*******@canada.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com... ... Next, I tried editing the Internet Explorer (v6) settings to allow scripting by setting 'enable' on anything to do with scripts in both the local and internet zone. It still blocks any javascript as if I hadn't even changed the settings. -and yes, I tried from the Administrator account too. This problem came up when I had my workstation changed from 2000 to XP. To test the javascript in the pages, I have to click the 'allow blocked content' setting every time I open the browser again.
If you are talking about testing locally on your computer as opposed
to files on a server, click Tools>Internet Options>Advanced, scroll
down to the security section, and put a check mark in the box for
"Allow active content to run in files on My Computer". This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ishpeck |
last post by:
I need to make IE execute javascript in a web page with COM+ and
Python.
Similarly to the way they do it in this article. . .
...
|
by: Jeff |
last post by:
Use the MS Script Editor included free with MS Office 2002 and above,
for debugging Internet Explorer (IE).
This subject is of great interest to...
|
by: Apu Nahasapeemapetilon |
last post by:
Hello and thank you in advance for your help.
Can anyone think of a reason why this code would work properly on one PC,
but not another?
I've...
|
by: slaterino |
last post by:
Hello,
I'm hoping someone can help me with a couple of queries. I am in the
process of designing a site which I have uploaded to:...
|
by: -Lost |
last post by:
http://blogs.msdn.com/ie/archive/2007/12/19/internet-explorer-8-and-
acid2-a-milestone.aspx
Oh my! A somewhat standards compliant Internet...
|
by: Prisoner at War |
last post by:
Hi, All:
I have a JavaScript search engine that always causes MSIE 7 to do a
top-of-page security "warning" (that top-of-page-bar, and not an...
|
by: Mark Livingstone |
last post by:
I have a form that uses the following: onSubmit="some_var =
'validated';"
FireFox is OK with that. Internet Explorer isn't. any ideas why?
...
|
by: bush |
last post by:
hi all!
i want to access the regisrty key values of internet explorer using
javascript or some html code....so that i can change values of header...
|
by: avpkills2002 |
last post by:
I seem to be getting this weird problem in Internet explorer. I have
written a code for parsing a XML file and displaying the output. The
code...
|
by: tammygombez |
last post by:
Hey fellow JavaFX developers,
I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
|
by: teenabhardwaj |
last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: CD Tom |
last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
| |