473,769 Members | 7,375 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
18 8436
It's a given with this particular application (not the world at large,
but this application) that it won't run with javascript disabled. The
users are aware of this fact.

Oct 14 '05 #11
The Magpie said the following on 10/14/2005 10:54 AM:
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?


Who said anything, in that reply, about Javascript?

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 14 '05 #12
DartmanX said the following on 10/14/2005 6:25 PM:
It's a given with this particular application (not the world at large,
but this application) that it won't run with javascript disabled. The
users are aware of this fact.


Then make your users aware of the fact that it requires ActiveX as well.
Then you have no problem trying to determine if it is disabled or not.

Please quote what you are replying to.

If you want to post a followup via groups.google.c om, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Oct 14 '05 #13
Randy Webb wrote:
The Magpie said the following on 10/14/2005 10:54 AM:
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?


Who said anything, in that reply, about Javascript?

Given this is a Javascript newsgroup, that should be taken as read.
Oct 15 '05 #14
The Magpie said the following on 10/15/2005 8:52 AM:
Randy Webb wrote:
The Magpie said the following on 10/14/2005 10:54 AM:
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?

Who said anything, in that reply, about Javascript?

Given this is a Javascript newsgroup, that should be taken as read.


So everything you read in this newsgroup you assume is a Javascript
question? Thats a flawed line of reasoning.

The answer to my question is: Nobody.

But, JS is the *only* mechanism that can *reliably* determine if it is
/enabled/. Nothing can determine, reliably, if it is /disabled/.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 15 '05 #15
The Magpie wrote:
Randy Webb wrote:
The Magpie said the following on 10/14/2005 10:54 AM:
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?


Who said anything, in that reply, about Javascript?

Given this is a Javascript newsgroup, that should be taken
as read.


Oh no it shouldn't. Understanding a technology is as much about knowing
when it should or should not be used as knowing how it can be used and
where it could and could not be used. The best possible advice a
javascript group can give to many questions about the possibility of
using javascript for some tasks is that it is an inappropriate
technology for the task and so should not be used. In such circumstances
anyone presenting a javascript hack that might be effective in 80% of
circumstances is manifestly doing the questioner a disservice, and
giving _bad_ advice, and certainly whenever an alternative technology
could give 100% reliability.

There is certainly no inherent dependency on javascript in asking the
user a question:-

<form action="someSer verScritp" method="POST">
<div>
Have you completely disabled ActiveX controls in this browser?
<input type="submit" value="Yes" name="Response" >
<input type="submit" value="No" name="Response" >
</div>
</form>

If you combine 'all answers must be exclusively javascript approaches'
and "what if javascript is disabled?", then all answers must become "No
you cannot do this" (because all exclusively javascript approaches must
fail utterly whenever javascript is not executed). In practice
javascript should be designed to be integrated with the technologies
that represent the rest of the system, and informed design decisions are
capable of identifying the best approach to be taken, which may not
involve javascript at all, or may involve javascript in a non-critical
way.

Richard.

Oct 16 '05 #16

cw******@yahoo. com wrote:
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.


I did find a script that at one time was available at Netscape. The
link I had is gone, and I do not know if they deleted the script or
moved it. However I find that I made a copy of the script without the
discussion and still have it. It detects if the WMP is installed, if
ActiveX is supported, etc. I could have made a minor change in the
code, but the script is mainly that of Netscape. It likely is rather
out of date now, and I believe I remember that some of the tests may
now fail on some recent browsers. Thus I do not think you should use it
without testing on many browsers and bringing the code up to date. I
have found that I usually can get around testing for AX by providing an
alternative path in the AX object as described in previous posts. Thus
I had all but forgotten about this script. Since this is not my script,
the complaint department is at Netscape :-).

See the source code at http://www.cwdjr.net/wmp/NN_IE_WMP_Sniff.html .

Oct 16 '05 #17
JRS: In article <di************ *******@news.de mon.co.uk>, dated Thu, 13
Oct 2005 02:15:02, seen in news:comp.lang. javascript, Richard Cornford
<Ri*****@litote s.demon.co.uk> posted :
DartmanX wrote:
Is there a simple way to determine if someone using Internet
Explorer has completely disabled ActiveX controls?


Ask them?


They may not know who to ask.

The word "has", in that context, can refer either to a past action of
the IE user (which they may or may not remember) or just to a present
state of the IE (whoever caused it).

The following can discriminate between working and not working
*javascript*; it should not be placed in script.htm or noscript.htm :

<META HTTP-EQUIV="REFRESH" CONTENT="1; URL=noscript.ht m">

<script>
window.location .href="script.h tm"
</script>
Javascript is not working

You may or may not be able to do something similar in ActiveX.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Oct 16 '05 #18
Richard Cornford wrote:
The Magpie wrote:
Randy Webb wrote:
The Magpie said the following on 10/14/2005 10:54 AM:

Richard Cornford wrote:

>DartmanX wrote:
>
>>Is there a simple way to determine if someone using
>>Interne t 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?

Who said anything, in that reply, about Javascript?
Given this is a Javascript newsgroup, that should be taken
as read.


Oh no it shouldn't.


I disagree, but that is almost totally irrelevant.
[snip]The best possible advice a
javascript group can give to many questions about the possibility of
using javascript for some tasks is that it is an inappropriate
technology for the task and so should not be used.


Which is what I actually did.
Oct 17 '05 #19

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
2595
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
6869
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
3521
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
9589
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
10216
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
10049
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
9865
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
7413
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
6675
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3965
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
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.