Solved

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

Posted on 2001-09-14
11
224 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript 2 39
message Alert on an empty search 10 29
Table doesn't show the lines! 3 25
Ajax on ASP 2 43
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

730 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