ActiveX

jmvalverdemejia
jmvalverdemejia used Ask the Experts™
on
Hello experts,

I made an ActiveX that cleans the windows clipboard, but i want to know if the browser can execute it (check the browser capabilities about ActiveX).

I have checked in Jscript something like: navigator.cookieEnabled, but nothing about check ActiveX enabled.

Can we help me?

Thanx,

Jmvm
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Activex won't be executed like javascript.
It will require permission from user before it is downloaded and executed.

if you need to detect activex compatibility, please see browserhawk at
http://www.devarticles.com/art/1/82/2 or http://www.cyscape.com/

Hi,

  fozylet states, ActiveX objects require downloading or existence.  Therefore,
you can do something like:

<script>
try {
 x = new ActiveXObject("myObject")
// etc.....
} catch (error) {
  alert('no activeX')
}
</script>

Vinny

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial