473,548 Members | 2,744 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 8389

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
1985
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
6076
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...
12
2558
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
5239
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...
2
2178
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...
1
6817
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...
3
2082
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
2219
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...
6
3503
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...
0
7444
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...
0
7711
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. ...
1
7467
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...
0
6039
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...
1
5367
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...
0
5085
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3497
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...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1054
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.