How to judge whether a browser supports ActiveX?

M

morgan.chengmo

How to judge whether a browser supports ActiveX?

Some browser like Firefox doens't support ActiveX by default, but can
do it with plugin support. Take Firefox for example, it has a whitelist
(activex.js) of allowed ActiveX. So, "new ActiveXObject" may not be a
good idea. The ActiveX control for test is possibly not in the
whitelist.

Is there any better way to do that?
 
E

Erwin Moller

How to judge whether a browser supports ActiveX?

Some browser like Firefox doens't support ActiveX by default, but can
do it with plugin support. Take Firefox for example, it has a whitelist
(activex.js) of allowed ActiveX. So, "new ActiveXObject" may not be a
good idea. The ActiveX control for test is possibly not in the
whitelist.

Is there any better way to do that?

Hi,

Just an idea: Why not try to instantiate a new activeX object, with
errorcatching code around it?
That way you don't have to worry about all different platforms and browsers.
If it works, good, if it fails, you can fail gracefully because of the
errorcatchingcode.

Regards,
Erwin Moller
 
S

Sevinfooter

Erwin said:
Hi,

Just an idea: Why not try to instantiate a new activeX object, with
errorcatching code around it?
That way you don't have to worry about all different platforms and browsers.
If it works, good, if it fails, you can fail gracefully because of the
errorcatchingcode.

Regards,
Erwin Moller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top