Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-19-2011, 01:28 AM   PM User | #1
blcart2bs
New to the CF scene

 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
blcart2bs is an unknown quantity at this point
Users in IE are not getting script/ActiveX warning

I have a program written in Javascript (saved as an HTML file that I run from my desktop by launching it in IE) which works fine on my system. Running IE 8 in Vista on one system and XP on another.

When I launch the file, I get warning in the information bar: "To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX cntrols that could access your computer. Click here for optons..."

I actually WANT this warning. When I click through it to accept, the program works fine.

But about half of the people that I share this program with are not getting this warning, and it appears that the javascript never runs. At first I thought it was something in Windows 7, because two of the users were running on that OS, and I've found a number of issues described online about having problems running scripts in IE8/Win7.

But the latest user is also running Vista, like me. His security settings are set to the default, Medium-High. But he's still not getting the script/ActiveX warning in the message bar.


Anyone know how we can enable that warning?


Thanks!
blcart2bs is offline   Reply With Quote
Old 03-19-2011, 04:02 AM   PM User | #2
mrhoo
Regular Coder

 
Join Date: Mar 2006
Posts: 710
Thanks: 31
Thanked 128 Times in 119 Posts
mrhoo will become famous soon enoughmrhoo will become famous soon enough
IE-tools-advanced-
check the box to 'allow active content to run on files on my computer'

Not recommended except for local testing.

The prompt to allow can be disabled in Group policies, or the registry,
so no one on the network can allow unsafe operations on their own workstations.
And some pc users set it up that way as well.

Which is why some people don't get the warning or the script.

Simplest way out is to run it in any other browser- they are isolated from the operating system
in a way IE can never be.

Last edited by mrhoo; 03-19-2011 at 04:06 AM..
mrhoo is offline   Reply With Quote
Old 03-19-2011, 06:03 AM   PM User | #3
blcart2bs
New to the CF scene

 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
blcart2bs is an unknown quantity at this point
That option isn't checked on my system, though. How come I'm getting the prompts?


As for other browsers, I haven't been able to get the script to run at all in Chrome. The programmer tells me that this is because Chrome blocks cross-site javascript (the code is a text parser that loads a web page by entering the URL, and outputs selected portions), and that if I wanted to run it in Chrome I would need to run it with the command line option --disable-web-security.
blcart2bs is offline   Reply With Quote
Reply

Bookmarks

Tags
activex, information bar, security

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:14 AM.


Advertisement
Log in to turn off these ads.