plugin detection - name des acrobat plugins im ie?
der-daniel
- browser
hallo,
ich schreibe gerade an einem statistik-script, dass unter anderem auch feststellen soll, welche plugins aktiv sind.
im mozilla funktioniert das relativ einfach, aber im ie ist das etwas komplizierter...
mir fehlen nurmehr java und acrobat reader, dann hab ich alle zusammen.
aber gerade für diese 2 finde ich keine plugin-bezeichnungen, kann mir da jemand helfen?
die bezeichnung für den realplayer sieht z.b. so aus:
function detectReal(redirectURL, redirectIfFound) {
pluginFound = detectPlugin('RealPlayer');
// if not found, try to detect with VisualBasic
if(!pluginFound && detectableWithVB) {
pluginFound = (detectActiveXControl('rmocx.RealPlayer G2 Control') ||
detectActiveXControl('RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)') ||
detectActiveXControl('RealVideo.RealVideo(tm) ActiveX Control (32-bit)'));
}
ich suche sozusagen das "rmocx.RealPlayer G2 Control" für acrobat reader und java....
danke,
ein-sich-zu-tode-gegoogelter-daniel
im mozilla funktioniert das relativ einfach, aber im ie ist das etwas komplizierter...
mir fehlen nurmehr java und acrobat reader, dann hab ich alle zusammen.
aber gerade für diese 2 finde ich keine plugin-bezeichnungen, kann mir da jemand helfen?
Hier funktionierende Beispiele für IE 5/5.5/6 und 7. Testen kann man das auf meiner Seite in der Rubrik "Browser Infos". Funktioniert aber nur bei aktiven Javascript und VBScripting!
Acrobat ist komplex, hier die Abfrage:
if(detectActiveXControl('PDF.PdfCtrl.4'))
document.writeln(" Acrobat Reader Plugin present");
else if(detectActiveXControl('PDF.PdfCtrl.5'))
document.writeln(" Acrobat Reader Plugin present");
else if(detectActiveXControl('PDF.PdfCtrl.6'))
document.writeln(" Acrobat Reader Plugin present");
else if(detectActiveXControl('AcroPDF.PDF.1'))
document.writeln(" Acrobat Reader Plugin present");
else
document.writeln(" - - -");
Die Java Abfrage ist relativ einfach:
if(detectActiveXControl('JavaPlugin'))
document.writeln(" Sun Java Plugin present");
else
document.writeln(" - - -");
super, genau was ich brauche!
vielen vielen lieben dank!!
hallo nochmal!
ich habe geradebemerkt, dass meine erkennung für shockwave nicht zu funktionieren scheint.
gibt es andere abfragevarianten wie beim acrobat-plugin für meine?
hier meine aktuelle routine:
function detectDirector(redirectURL, redirectIfFound) {
pluginFound = detectPlugin('Shockwave','Director');
// if not found, try to detect with VisualBasic
if(!pluginFound && detectableWithVB) {
pluginFound = (detectActiveXControl('SWCtl.SWCtl.1') ||
detectActiveXControl('SWCtl.SWCtl.7') ||
detectActiveXControl('SWCtl.SWCtl.8') ||
detectActiveXControl('SWCtl.SWCtl.9') ||
detectActiveXControl('SWCtl.SWCtl.10'));
}
// check for redirection
return redirectCheck(pluginFound, redirectURL, redirectIfFound);
}
danke,
der-daniel