Solved

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

Posted on 2001-09-14
11
213 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

705 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

19 Experts available now in Live!

Get 1:1 Help Now