Solved

Is it possible to check if a plugin is installed on IE?

Posted on 2001-09-14
11
216 Views
Last Modified: 2013-11-18
Is it possible to check if a plugin is installed on IE? I know the code for netscape, I have not been able to find it for IE.

I am trying to display a DejaVu file on the browser and need to check if the plugin is installed.

Thanks in advance.

Nigel
0
Comment
Question by:theoneandonly
  • 6
  • 2
  • 2
  • +1
11 Comments
 
LVL 7

Accepted Solution

by:
ClassyLinks earned 50 total points
ID: 6483413
There are lots of scripts out there to detect the .pdf, realplayer or flash plug-ins.

This is the one I use to detect the pdf. You could modify it (I think) to suit your needs.  You only need to know how the browsers store the name of the plug-in....

<SCRIPT LANGUAGE="Javascript">
<!--
// detection for Netscape
var useAcrobat = navigator.mimeTypes &&
navigator.mimeTypes["application/pdf"]
//-->
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
<!--
   on error resume next
   useAcrobat = not IsNull(CreateObject("AcroExch.Document"))
   '                can be CreateObject("PDF.PdfCtrl.1") too!
//-->  
</SCRIPT>
<SCRIPT>
<!--
   if (useAcrobat)
      document.writeln("<%response.redirect filename%>");
   else
      document.writeln("<A href="http://www.adobe.com/products/acrobat/readstep2.html"><IMG height=31 src="http://www.adobe.com/images/getacro.gif" width=88 border=0></A>Please download the FREE Acrobat Reader to view the document");
//-->      
</SCRIPT>
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6483434
Here is more info on the mime types...don't know if it will help you or not...

http://cgi.netscape.com/cgi-bin/pi_moreinfo.cgi?PID=11764
0
 

Author Comment

by:theoneandonly
ID: 6486891
Thanks ClassyLinks, I will try this and let you know

Nigel
0
 

Author Comment

by:theoneandonly
ID: 6487147
ClassyLinks, do you know where I can get the object type for the CreateObject function for the Djvu plugin. I tried to look on the website for Lizzard Tech. But no joy.

Thanks again for all the help.

Nigel
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6487314
Hi Nigel.....

I'll continue to try to look for that info, but have you tried an email to LizardTech?  It might save a tonne of work!
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6487355
I found this:

http://www.smeenk.com/vrml/articles/detection.html

It is a detection script but doesn't check for dejavu...however it does illustrate quite nicely how to modify the script so that it does look for any plug-in you desire...

Let me know if that helps.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6694890
This question has been abandoned.  I will make a recommendation to the
moderators on its resolution in a week or two.  I appreciate any comments
that would help me to make a recommendation.

Cd&
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6696763
Hi Cd&!

I'll take 'em.

Hope you had a good Xmas, btw.  8-)
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6714269
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
Points to ClassyLinks

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
LVL 1

Expert Comment

by:Computer101
ID: 6716523
Comment from ClassyLinks accepted as answer.

Thank you
Computer101
Coommunity Support Moderator
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6717689
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Retrieve values of an HTML form using JQUERY 2 39
Sums of coloumns in html/java 15 67
JavaScript: Issue with onClick 5 36
Not seen Link button 5 15
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now