473,837 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Warning when scripting an ActiveX control.

I have this sample HTML code:

<html>

<head>
<script type="text/javascript">
var WinHttpReq = new ActiveXObject(" WinHttp.WinHttp Request.5.1");
</script>
</head>

<body>
</body>

</html>

As you can see it really does nothing but instantiate an ActiveX
control.

Loading the page off my desktop into IE6 results in this warning:

"An ActiveX control on this page might be unsafe
to interact with other parts of the page. Do you
want to allow this interaction?"

I'd like to turn this warning off since

* It's not a random ActiveX control it's a standard MS component
* It's not being installed from the internet. It's being loaded and run
from the local machine.

but from my reading I may not be able to do that. Does anyone know how
I can let IE6 know that it's safe to instantiate this object?

Thanks
Jul 23 '05 #1
11 3651
Hi
I am having the same issue. I have enabeled EVERYTHING on my computer,
active x, java this that and the other, and I still get that damn
warning and it won't load. *sigh* I would be equally grateful if
someone can tell me how to rub my computer belly just right to make it
work.

I've even went as far as to put everything on the lowest security
settings possible and shut off ALL the AntiSpyware crap from Microsoft
(just in case , since its Beta 1) but to no avail it still gave me that
little annoying error.

So I just put everything back up to full security since then.

*grumbles bastards*

Jul 23 '05 #2
In my case, if I click "Yes" on the warning the ActiveX control does in
fact load and it behaves correctly but I'm just trying to avoid being
asked each time.
In article <11************ *********@g43g2 000cwa.googlegr oups.com>,
je*****@comcast .net says...
Hi
I am having the same issue. I have enabeled EVERYTHING on my computer,
active x, java this that and the other, and I still get that damn
warning and it won't load. *sigh* I would be equally grateful if
someone can tell me how to rub my computer belly just right to make it
work.

I've even went as far as to put everything on the lowest security
settings possible and shut off ALL the AntiSpyware crap from Microsoft
(just in case , since its Beta 1) but to no avail it still gave me that
little annoying error.

So I just put everything back up to full security since then.

*grumbles bastards*

Jul 23 '05 #3
Dave,

Have you tried going to (on IE) Tools > Internet Options > Security >
Custom Levels and then setting everything under Active X Controls &
plug-ins to be "Enabled" ?

Jul 23 '05 #4
Dave wrote:
Loading the page off my desktop into IE6 results in this warning:

"An ActiveX control on this page might be unsafe
to interact with other parts of the page. Do you
want to allow this interaction?"

I'd like to turn this warning off since

* It's not a random ActiveX control it's a standard MS component
* It's not being installed from the internet. It's being loaded and run
from the local machine.

but from my reading I may not be able to do that. Does anyone know how
I can let IE6 know that it's safe to instantiate this object?

Thanks


I think you need the "Mark of the web" on your page -
http://www.phdcc.com/xpsp2.htm#markoftheweb - assuming you are using
IE6 SP2 that is.

Jul 23 '05 #5
Yes, I've set everything that I could to enable on both the "internet"
and "local intranet" zones.

Did you try the code in the original post? Did you see the same
problem?

In article <11************ **********@o13g 2000cwo.googleg roups.com>,
we********@gmai l.com says...
Dave,

Have you tried going to (on IE) Tools > Internet Options > Security >
Custom Levels and then setting everything under Active X Controls &
plug-ins to be "Enabled" ?

Jul 23 '05 #6
If your site is intended for intranet use, use a hta file. They are a
more trusted version of IE and won't show you that pesky warning.
Pretty dumb from MS to even show that warning if it's one of their own
ActiveX' . Even the use of filters and transitions will show the
warning. tssss

Jul 23 '05 #7
I believe I've set everything with an "enable" option to enable in the
Internet, Local intranet and Trusted sites zones. This is in the
security tab of IE's Internet Options dialog...

Were you able to bring up the code from the original post without an
error?

In article <11************ **********@o13g 2000cwo.googleg roups.com>,
we********@gmai l.com says...
Dave,

Have you tried going to (on IE) Tools > Internet Options > Security >
Custom Levels and then setting everything under Active X Controls &
plug-ins to be "Enabled" ?

Jul 23 '05 #8
In article <11************ *********@g43g2 000cwa.googlegr oups.com>,
pe**********@gm ail.com says..s

I think you need the "Mark of the web" on your page -
http://www.phdcc.com/xpsp2.htm#markoftheweb - assuming you are using
IE6 SP2 that is.

Actually, I'm surprised to see that I'm NOT at SP2 on this computer.

I'm going try that first.
Jul 23 '05 #9
It's not necessarily intended only for intranet use but I felt that was
the easiest case to handle first.

I'm not familiar with hta files but I'll do some google research. If
you have a good site for me that will explain how hta files may help me,
please pass it along.

I agree it seems crazy, I'm not asking users to download some unknown
ActiveX control, I'm just trying to use something that's part of
windows.

Thanks for the ideas...
In article <11************ *********@g43g2 000cwa.googlegr oups.com>,
mi************@ gmail.com says...
If your site is intended for intranet use, use a hta file. They are a
more trusted version of IE and won't show you that pesky warning.
Pretty dumb from MS to even show that warning if it's one of their own
ActiveX' . Even the use of filters and transitions will show the
warning. tssss

Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14470
by: Steven Kobes | last post by:
I have an HTML file containing some JScript that creates a "WScript.Shell" ActiveX object. When it loads, Internet Explorer says: "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?" I would like to suppress this message, but even when I set all ActiveX-related security settings to "Enable", it still appears.
6
18353
by: Richard | last post by:
I have now finally got the JSCookMenu to work (hooray!) But every time I test it, my IE browser delivers an "Information Bar" warning about active content. The MS Help says "This message appears when a Web page on your computer tries to run a script or ActiveX control." I have tried setting Security to as low as possible, and enabling everything I can see in the internet zone security settings .... but I can't stop this
4
1791
by: pantagruel | last post by:
I was wondering if anyone has enough familiarity with the ActiveX scripting implementation of javascript to answer if it would be possible to define a new language for the engine, and for the implementation inheriting from the javascript implementation, adding in capabilities. By capabilities I mean not just the generic use of the word, but more specifically the concept of capability-based security. Hoping someone can give me a good...
1
2081
by: Chris Zoper | last post by:
Hello, I've developed an ASP.NET application and I use an ActiveX control in it. The ActiveX control is developed in Visual Basic 6.0. Each time a page with the ActiveX control is loaded, I get the message that describes that the ActiveX control isn't marked as save for scripting. Does anyone know how I can mark my ActiveX (VB 6.0) control as save, so that the browser knows it can load it. Has anyone samples for Visual Basic 6.0?
12
3009
by: ShepardBerry | last post by:
This may be a dumb question, but I'm not finding anything specifically what I'm looking for. Still kind of new to .NET as well. What I'm trying to do that I know I could do in VB6.0/ASP is to create a client side object set some properties and have it run some code. I know that in VB6/asp it was fairly straight forward by creating an ActiveX control, register it and then VBScripting the CreateObject("xxx.xxxx") command and it worked...
4
4479
by: Saml | last post by:
When opened in IE 6.0 SP2 from my local hard drive, the simple javascript below gives me a warning "To help protect your security, Internet Explored has restricted this file from showing active content that could access your computer." But it gives no warning when opened from http://home.comcast.net/~lennsam_va/test1.htm and this is what I expect, since I'm not trying to block scripting.
5
5200
by: VancouverMike | last post by:
Hi there, I am writing a web app using asp.net 1.1 and C#. This web app is launched in another win32 application and this app needs to pass information to my web app. But this win32 application doesn't support long string(Maximum 255), which gives me problem passing information longer than 255 through querystring. So I have to use an intermedia plain file and in my web app, using Scripting.FileSystemObject to open the file and read the...
1
1332
by: artorius | last post by:
Hey. I wrote a small code, and it seems to work all right, however the program don't run when i fill the entire form, in spite of the warning of running an activex control bla bla. Any suggestion? <html> <head> <SCRIPT LANGUAGE="javascript" TYPE="text/javascript"> function go() { w = new ActiveXObject("WScript.Shell");
0
9846
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9686
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10890
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10634
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9416
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7819
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5675
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5855
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4479
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 we have to send another system

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.