JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 2nd, 2004, 09:16 AM
binit.agrawala binit.agrawala is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 binit.agrawala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Detecting Activex objects installed in IE

Hi All,

I want to detect whether a particular activex component has been successfully installed in my IE browser. Based on this I have to choose the next web page I browse i.e. if the component has not been installed, then I should me led to an error page else normal flow. And all this has to be done using java script as the code has to be plat form independent.

More info : OS -- Win XP SP2
Browser -- IE-6

Any help will be appreciated

TIA

Binit

Reply With Quote
  #2  
Old March 16th, 2005, 08:58 AM
Wellmoon Wellmoon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 1 Wellmoon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 22 sec
Reputation Power: 0
Which activeX object do you wish to detect?

Reply With Quote
  #3  
Old July 13th, 2006, 09:54 PM
cwhtan cwhtan is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 cwhtan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 56 sec
Reputation Power: 0
How to detect IE ActiveX object is ebabled?

I'm proceeding in my project, but I found when the Internet option -> security setting -> ActiveX object set to prompt. When running JS script which invoke the ActiveX object, IE promt to ask if the ActiveX object is allow? I found there will be possibility user disabled the ActiveX and cause error in JS script. Did anyone know the way of detecting the security setting, if the user PC setting "Promt" or "enabled" for the ActiveX object?

Thank you.

Reply With Quote
  #4  
Old July 14th, 2006, 11:26 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 552 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 33 sec
Reputation Power: 14
javascript - ActiveX

You should try not to write code that depends on either ActiveX or javascript being enabled. If you can, try to write code that enhances a users experience if they have javascript and/or ActiveX, but will not break if they don't.
You can not acquire a users security settings with javascipt. You can write in try-catch error handling blocks so that if the ActiveX object is loaded and allowed the script will work, and if not, an alternate will occur (even if it's a "sorry, you must have ActiveX for this" type of thing). The ActiveX prompts are a security feature to prevent users from unkowingly allowing malicious code to run, you have to find a way to deal with this. Explaining why users should allow it should help some, as well "signing" the control certificate.

Reply With Quote
  #5  
Old February 4th, 2008, 10:17 AM
Styl1n Styl1n is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 2 Styl1n User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 21 sec
Reputation Power: 0
Quote:
Originally Posted by Mittineague
You should try not to write code that depends on either ActiveX or javascript being enabled. If you can, try to write code that enhances a users experience if they have javascript and/or ActiveX, but will not break if they don't.
You can not acquire a users security settings with javascipt. You can write in try-catch error handling blocks so that if the ActiveX object is loaded and allowed the script will work, and if not, an alternate will occur (even if it's a "sorry, you must have ActiveX for this" type of thing). The ActiveX prompts are a security feature to prevent users from unkowingly allowing malicious code to run, you have to find a way to deal with this. Explaining why users should allow it should help some, as well "signing" the control certificate.


Horse$hit! Sorry but that's not always the case. Ja i agree that in many cases, writing JS that could break the functionality of an app is bad but there are cases where it is just neccessary; especially on internal sites with particular active x requirements. Don't get me wrong, given that you have full control over requirements, idealism is great but it's rarely practical and expressing it as your first point isn't helpful.

Finding out whether an active x is installed is pretty straight forward, you just declare it as per normal and then just check it is present. The snippet below will redirect if MSXML4 is not installed.

Code:
<OBJECT id="MSXML4"
classid="clsid:88d969c0-f192-11d4-a65f-0040963251e5"
codebase="http://www..../msxml4.cab#version=4,10,9404,0"
type="application/x-oleobject"
STYLE="display: none"
standby="ww">
Alternative Text
</OBJECT>

<script>
//if msxml4 is not installed
if( !document.MSXML4 ){
document.loction.href = "SomePage.html"
</script>
}

Reply With Quote
  #6  
Old February 7th, 2008, 01:58 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 552 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 33 sec
Reputation Power: 14
if object exists

Thanks for posting the example code. Much more helpful than my
Quote:
Originally Posted by Mittineague
You can write in try-catch error handling blocks so that if the ActiveX object is loaded and allowed the script will work, and if not, an alternate will occur
__________________
WP plugins - Error Reporting, Clean Options
http://www.mittineague.com/dev/er.php
http://www.mittineague.com/dev/co.php

Reply With Quote
  #7  
Old June 1st, 2010, 04:00 PM
onlineclick onlineclick is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2010
Location: US
Posts: 13 onlineclick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 44 sec
Reputation Power: 0
Here I am*

Good day!Im new to the site. really looking forward to meeting new people, seeing what they have to say and just really chilling on some social network other than facebook. bleh. like i said, i am me, now who are you?Take care!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Detecting Activex objects installed in IE


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap