?
Solved

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

Posted on 2001-09-14
11
Medium Priority
?
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
  • 2
  • +1
11 Comments
 
LVL 7

Accepted Solution

by:
ClassyLinks earned 200 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
WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

 

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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

764 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