Closed Thread Icon

Topic awaiting preservation: ActiveX - Javascript (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=25903" title="Pages that link to Topic awaiting preservation: ActiveX - Javascript (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: ActiveX - Javascript <span class="small">(Page 1 of 1)</span>\

 
SmashHallon
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Mar 2003

posted posted 05-30-2005 10:07

I am trying to detect if a user has got an ActiveX control (a calendar) installed.

Problem is that I don´t know how to get the 'ProgramId.Here' for the control.

The control is ctDate, if anyone of you have heard of it :-)

I use this code: and it works if i try to "ShockwaveFlash.ShockwaveFlash" for example.

try {
var x = new ActiveXObject('ProgramId.Here');
}
catch (e) {
if (e.number == '23423434 (the suitable error number)')
alert('plugin not available');
}


Any suggestions on how to get the ProgramId for an "unknown" control?

Thank in advance
Niklas

BillyRayPreachersSon
Bipolar (III) Inmate

From: London
Insane since: Jul 2004

posted posted 05-30-2005 11:50

Yes - search your registry, or read the manual / help file that came with the control when you bought it.

Regarding the former... I'm not Windows expert, but AFAIK, the HKEY_CLASSES_ROOT\CLSID key contains all the UIDs that you have installed. If you search through these until you find the progid for "ctDate", then the number you need to use is the hex key above that progId folder.

However, I would contact the company you bought this from - you should get technical support with a bought, licenesed product (you do own this control, right?)

Dan

SmashHallon
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Mar 2003

posted posted 05-30-2005 13:18

Hi BillyRay!

Thanks, I found it.

Kind Regards
Niklas

« BackwardsOnwards »

Show Forum Drop Down Menu