473,757 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Determining if ActiveX Controls are Disabled

Is there a simple way to determine if someone using Internet Explorer
has completely disabled ActiveX controls?

Jason

Oct 12 '05 #1
18 8431

DartmanX wrote:
Is there a simple way to determine if someone using Internet Explorer
has completely disabled ActiveX controls?

Jason


Perhaps someone else knows of a simple way to detect if ActiveX is
disabled. It is true that IE browsers and close relatives such as MSN9,
MyIE2, and Avant can handle general ActiveX, if not disabled. However
several other browsers can use plugins to handle a very limited subset
of ActiveX(there are some hacks for general ActiveX on many browsers
which I would not use). For example recent Netscape browsers came with
ActiveX support for the WMP only. Also there are plugins that can be
downloaded for the same type of ActiveX support of the WMP for Mozilla
and Firefox. This should be kept in mind in any test designed to detect
full or partial ActiveX support.

Media pages often use ActiveX. In this case the standard way seems to
be to write a dual path for browsers that do and do not support ActiveX
rather than detecting ActiveX support. For example one can write an
ActiveX object for the WMP that allows many control parameters. One can
also include a second ordinary object(or embed if one does not care
about standards)that usually allows fewer controls. If the browsers
does not support ActiveX, the second path is automatically taken. That
is just the way an ActiveX object is designed to work. I have often
seen such an approach used for Real media and flash as well as for
Microsoft wmv and wma formats. ActiveX objects are very easy to spot.
They have a 32 digit hex ID that is unique for each device or program
to be controlled.

Oct 13 '05 #2
Well, the reason I ask the question is because what I am doing needs to
be able to determine if ActiveX is completely disabled on IE in order
to display a "Sorry, this function won't work" message.

Jason

Oct 13 '05 #3
DartmanX wrote:
Is there a simple way to determine if someone using Internet
Explorer has completely disabled ActiveX controls?


Ask them?

Richard.
Oct 13 '05 #4

DartmanX wrote:
Well, the reason I ask the question is because what I am doing needs to
be able to determine if ActiveX is completely disabled on IE in order
to display a "Sorry, this function won't work" message.

Jason


I do not think that javascript is a good answer. Even if you can come
up with a script that can detect ActiveX support or not with 100%
accuracy, there is a problem. Many people who turn off ActiveX also
turn off javascript. For all such people, a script method is doomed to
failure. Thus, if the detection you wish is reasonable at all, it
likely needs to be done on the server using php script, Perl, or
something of the sort.

Oct 13 '05 #5
cw******@yahoo. com said the following on 10/12/2005 10:56 PM:
DartmanX wrote:
Well, the reason I ask the question is because what I am doing needs to
be able to determine if ActiveX is completely disabled on IE in order
to display a "Sorry, this function won't work" message.

Jason

I do not think that javascript is a good answer. Even if you can come
up with a script that can detect ActiveX support or not with 100%
accuracy, there is a problem. Many people who turn off ActiveX also
turn off javascript.


I have JS enabled, ActiveX disabled. I understand how my browser works,
how ActiveX works, and what kind of security holes I am opening/closing
by having it set that way.
For all such people, a script method is doomed to failure.
That is not true. JS/ActiveX is the best answer to answer a JS/ActiveX
question. You put the warning in the page and then have JS/ActiveX
remove it.

"Warning: I have no idea how to implement my page without JS and ActiveX
so if you see this then I failed in my objective of producing an
accessible webpage to all."

Then, you write an ActiveX object that would change that text. Pretty
simple stuff.

If the warning stays, then JS is disabled and the user is notified. If
JS/ActiveX is available, it removes the warning and JS/ActiveX enabled
users get the enhancement.
Thus, if the detection you wish is reasonable at all, it
likely needs to be done on the server using php script, Perl, or
something of the sort.


Huh? And how would the server attempt to determine that? It can't
possible determine it better than JS could attempt to determine it.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 13 '05 #6

Randy Webb wrote:
cw******@yahoo. com said the following on 10/12/2005 10:56 PM:
DartmanX wrote:
Well, the reason I ask the question is because what I am doing needs to
be able to determine if ActiveX is completely disabled on IE in order
to display a "Sorry, this function won't work" message.

Jason

I do not think that javascript is a good answer. Even if you can come
up with a script that can detect ActiveX support or not with 100%
accuracy, there is a problem. Many people who turn off ActiveX also
turn off javascript.


I have JS enabled, ActiveX disabled. I understand how my browser works,
how ActiveX works, and what kind of security holes I am opening/closing
by having it set that way.


For all such people, a script method is doomed to failure.


That is not true. JS/ActiveX is the best answer to answer a JS/ActiveX
question. You put the warning in the page and then have JS/ActiveX
remove it.

"Warning: I have no idea how to implement my page without JS and ActiveX
so if you see this then I failed in my objective of producing an
accessible webpage to all."

Then, you write an ActiveX object that would change that text. Pretty
simple stuff.

If the warning stays, then JS is disabled and the user is notified. If
JS/ActiveX is available, it removes the warning and JS/ActiveX enabled
users get the enhancement.
Thus, if the detection you wish is reasonable at all, it
likely needs to be done on the server using php script, Perl, or
something of the sort.


Huh? And how would the server attempt to determine that? It can't
possible determine it better than JS could attempt to determine it.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly


You do not need to use script at all in many cases - you just take
advantage of the AX object. As I mentioned in my first post, if you
use an AX object and AX is not supported, a second path will be taken
if it is included in the AX object. This second path can be a simple
paragraph that states anything you wish. See
http://www.cwdjr.info/souearly/AXtest.php . This includes an AX object
for the WMP with no other player path if AX is not installed or turned
off. Instead the second path is just a paragraph. Of course you must
have a WMP installed to view how the player works. If I view the page
on IE6 with ActiveX on, the player works. It also works on my Firefox
browser for which I have downloaded the AX plugin for the WMP only. The
player does not appear on my Mozilla, because I have not installed an
AX plugin for the WMP on it. Instead you get the warning that AX is not
installed or turned off. The same happens for the old Netscape 4.8 and
Amaya, which has no AX or javascript installed. The most recent Opera
is a special case. It plays the page as if it had AX installed. I
believe that Opera is using some trick to play media written with AX
support only, even though I doubt if Opera supports AX directly. I wish
someone from Opera would tell us exactly what is going on.

Oct 13 '05 #7
cw******@yahoo. com said the following on 10/13/2005 12:30 AM:

<snip>


You do not need to use script at all in many cases - you just take
advantage of the AX object.
Huh? The post I quoted you say this:

<quote>
Thus, if the detection you wish is reasonable at all, it
likely needs to be done on the server using php script, Perl, or
something of the sort.
</quote>

And now you say to use AX to detect AX? (which is exactly what I said).
As I mentioned in my first post, if you use an AX object and AX is
not supported, a second path will be taken if it is included in the AX
object. This second path can be a simple paragraph that states anything
you wish.


Which is the same effect as I described.

AX itself determines whether it is available or not - not the server.

The server is very rarely (if ever) the best place to try to determine
if a client side technology is available or not.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 13 '05 #8

Randy Webb wrote:
cw******@yahoo. com said the following on 10/13/2005 12:30 AM:

<snip>


You do not need to use script at all in many cases - you just take
advantage of the AX object.


Huh? The post I quoted you say this:

<quote>
Thus, if the detection you wish is reasonable at all, it
likely needs to be done on the server using php script, Perl, or
something of the sort.
</quote>

And now you say to use AX to detect AX? (which is exactly what I said).
As I mentioned in my first post, if you use an AX object and AX is
not supported, a second path will be taken if it is included in the AX
object. This second path can be a simple paragraph that states anything
you wish.


Which is the same effect as I described.

AX itself determines whether it is available or not - not the server.

The server is very rarely (if ever) the best place to try to determine
if a client side technology is available or not.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly


Perhaps you did not see my first post or it has not appeared on your
newsreader yet, so I will quote the part about a second path that I
mentioned there.

"Media pages often use ActiveX. In this case the standard way seems to
be to write a dual path for browsers that do and do not support ActiveX
rather than detecting ActiveX support. For example one can write an
ActiveX object for the WMP that allows many control parameters. One can
also include a second ordinary object(or embed if one does not care
about standards)that usually allows fewer controls. If the browsers
does not support ActiveX, the second path is automatically taken. That
is just the way an ActiveX object is designed to work."

I just detailed this and gave a working example for a paragraph as a
second path on the post you quoted. Of course if you view many pages
with AX objects, you will find all sorts of html used as a second path
if AX is not installed or turned off, so this is nothing new at all.

In case anyone wonders, the php include in the example page has nothing
to do with the AX object. It just writes and serves the page as proper
xhtml 1.1 served as application/xhtml+hml for browsers that will accept
this mime type. For outmoded browsers, such as the IE6, that will not
accept this mime type, the page is rewritten as html 4.01 strict, and a
comment is added to the source code telling what was done. You can see
this by viewing on the IE6 and checking the source code.

For the record, there are, or were, very complicated scripts for
detecting if a WMP, for example, is installed, what version it is, and
if there is AX support for it. This is/was somewhere on the vast
Microsoft sites. The best I remember, it used 2 javascripts(or perhap
Microsoft Jscripts?) and 1 vb script. Because of the vb script, this
method would not work on many other non-Microsoft browsers.

Oct 13 '05 #9
Richard Cornford wrote:
DartmanX wrote:
Is there a simple way to determine if someone using Internet
Explorer has completely disabled ActiveX controls?


Ask them?

Even if it is enabled, Javascript is a silly way to try and find out.
What if Javascript is disabled?
Oct 14 '05 #10

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

Similar topics

1
1996
by: Sem K. | last post by:
Hi, I am installing an activex from a web page, for my clients, however, it is possible for users to prevent activex objects in IE. Some percentage of the users, don't see the initial "trust" yes/no security box (my control IS signed). I suspect, that this is because, they have some obscure security settings.
2
6091
by: Grant H. | last post by:
hi all, i have a strange problem here & i'm not sure how to go about fixing it. Basically, I have a page with an activex control that gets launch with JS when a user clicks a "connect" button. Now, all i want to do is disable the button & change the text while the activex is loading. now, the code below should work, but what i'm seeing is that the js doesn't even start executing until the activex is loaded. so, what i'm expecting is...
12
2594
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
5
5252
by: Turner | last post by:
Hi there, I'm not a flash programmer myself but I work with some of them. It seems whenever I browse to a page developped by these folks the browser receives it as if there were ActiveX content (but there is none). I think there is a relationship between ActiveX and Flash, but I believe they are separate. The problem is, on explorer, for security and sanity reason I have completely disabled activeX and it prevents me from seeing the...
2
2186
by: sunilthk | last post by:
Hi All, I have a question. If javascript is disabled how asp.net determines which control has caused the post back. As we know that when we clicks on the button the buttons name goes with posted data, so asp.net can detrmine which btn caused the post back. In case of dropdown lists(if auto post back is true) _doPostback javascript function is called which assigns the name of the control in _EVENTTARGET hidden variable, by this ASP.NET...
1
6868
by: UnaCoder | last post by:
Hi, I noticed that this particular object is only accessable if the IE security setting "Initialize and and script ActiveX controls not marked as safe" is enabled. Does windows maintain this list somewhere? Is it hard coded, or can you edit it? Also, is there a way for the script to ask the user if they want to change the security setting to allow the ActiveX control to be used? For example, if "Initialize and script ..." is marked...
3
2097
by: shypen42 | last post by:
Hi everybody, I'm pretty new to Javascript (I'm more on the server-side usually :) I've been doing some XMLHttp request lately, communicating in an "Ajax" style (to be buzzword compliant) with the server... Quite handy :) It works fine on Firefox, Opera and IE 6 with ActiveX enabled and apparently IE7 with ActiveX disabled.
1
2234
by: Jayender | last post by:
Hi, I have an ActiveX control (to display the Images),I have added the reference of that in my web based applicaton .and added the ocx in my tool bar , but the viewer (activex component- ocx ) is disabled , but i tried this in Window based application, and it works great , but i need to do it in Web based applicaion , is there anything i need to add for making that to enable so that i can drag and place it in my web form ? waiting for...
6
3520
by: Budhi Saputra Prasetya | last post by:
Hi All, I'm trying to display .NET Custom Control (created using Inherited Control) on an ASPX page, but no luck. I already registered the Control to Global Assembly Cache through .NET Framework 1.1 Configuration. I have also put a reference to the control on my ASP .NET project. The view that I get is only a disabled text area. Below is the code that I'm using:
0
9487
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
9297
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
10069
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...
0
9904
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9735
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7285
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...
1
3828
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
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.