I am developing a web application that installs plugins and checks other requirements for a larger web application I have built. I am having problems, however, with checking for a custom ActiveX control. I can check for it by trying to instantiate it with an <OBJECT>
tag, but then it tries to install the plugin if the user is missing it, when I just need a javascript boolean returned whether or not the control is already installed. I have been searching around for a simple solution to this, but I can't quite find anything that works. Any ideas would be appreciated. Thanks beforehand.
質問する
500 次
1 に答える
1
あなたは言うことができます:
try {
new ActiveXObject(...);
} catch {
// Not installed.
}
http://msdn.microsoft.com/en-us/library/7sw4ddf8(v=vs.94).aspx
于 2012-08-18T18:06:14.757 に答える