
ActiveX failed! How to control?
On the server with JScript 5 or 5.5 installed you can do
try {
var obj = new ActiveXObject('ProgID');
}
catch (e) {
Response.Write('error');
}
If you are sure the browser has JScript 5 installed you can do
try {
var obj = new ActiveXObject('ProgID');
}
catch (e) {
alert('error');
}
The problem is IE4/JScript 3 throws an error on the try/catch statement
Quote:
> Hello,
> Id like to control if an ActiveX Control really was initialized. Following
> Script I used:
> var obj = new ActiveXObject("ProgID");
> if(obj == null) alert("Error found!");
> But this doesnt do the job! The error comes up before the if-statement!
> Does anyone have an answer?
> CIAO
> Michael, http://www.videotricks.de
--
Martin Honnen
http://javascript.faqts.com/
http://home.t-online.de/home/martin.honnen/jsgoddies.html