473,748 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I detect the version of Plugin in Internet Explorer?

Hi all.

How can I detect the version of Flash-Plugin installed in Internet
Explorer?
In Netscape i can do this with following java script
navigator.plugi ns[pluginname].description
But it doesn't works in IE?
Can anyone help me?

Thanx in advance,
Yurij
Jul 23 '05 #1
2 10034
> How can I detect the version of Flash-Plugin installed in Internet
Explorer?


Plugins are different for ie... I would embed some vbscript in your
javascript, and use object detection with vb. Here is a snip from a
page I did awhile ago, that will not work as is, but will give you the
idea...

// IE Plugin detection (using VBSCRIPT)
if( (wm.name=="IE") && (wm.version>=4. 0) && (wm.platform==" Win32") )
{
document.writel n('<SCRIPT LANGUAGE="VBSCR IPT"
TYPE="TEXT/VBSCRIPT">')
document.writel n(' Function DetectObject(ac tiveXname)')
document.writel n(' on error resume next')
document.writel n(' FoundStatus = False')
document.writel n(' FoundStatus =
IsObject(Create Object(activeXn ame))')
document.writel n(' If (err) then')
document.writel n(' FoundStatus = False')
document.writel n(' End If')
document.writel n(' DetectObject = FoundStatus')
document.writel n(' End Function')
document.writel n(' PluginStatus =
DetectObject("S hockwaveFlash.S hockwaveFlash.5 ")')
document.writel n(' If PluginStatus = True Then')
document.writel n(' wm.flash = 5')
document.writel n(' Else')
document.writel n(' PluginStatus =
DetectObject("S hockwaveFlash.S hockwaveFlash.4 ") ')
document.writel n(' If PluginStatus = True Then')
document.writel n(' wm.flash = 4')
document.writel n(' Else')
document.writel n(' PluginStatus =
DetectObject("S hockwaveFlash.S hockwaveFlash.3 ")')
document.writel n(' If PluginStatus = True Then')
document.writel n(' wm.flash = 3')
document.writel n(' End If ')
document.writel n(' End If')
document.writel n(' End If')
document.writel n(' PluginStatus =
DetectObject("Q uickTimeCheckOb ject.QuickTimeC heck")')
document.writel n(' If PluginStatus = True Then')
document.writel n(' wm.quicktime = 1')
document.writel n(' End If ')
document.writel n(' PluginStatus = DetectObject("R ealPlayer")')
document.writel n(' If PluginStatus = True Then')
document.writel n(' wm.realplayer = 1')
document.writel n(' End If ')
document.writel n('</SCRIPT>')
}

The first part

if( (wm.name=="IE") && (wm.version>=4. 0) && (wm.platform==" Win32") )

uses already detected settings to make sure that the browser is IE,
the version is greater than 4, and the OS is a windows platform. If
it is, it does the inline vbscript (I already described) to try and
create and test the object.

This code also tests for quicktime and realplayer.

I hope this code helps... keep in mind though, it is 3 or so years out
of date. It only tests for up to version 5 of Flash. But if you know
javascript it should be easy to modify it to get it to test for newer
versions. Also, you will have to change all of the "wm."
references... (this script used a custom-made object -- wm -- and
defined a bunch of browser settings which I set into a cookie...)

Hope it helps!

Holden
PS: As for IE on Macs, I don't think there is anything you can do.
Luckily, IE on Windows covers over 90% of the computers out there...
Jul 23 '05 #2
Yurij Nykon wrote:
Hi all.

How can I detect the version of Flash-Plugin installed in Internet
Explorer?
In Netscape i can do this with following java script
navigator.plugi ns[pluginname].description
But it doesn't works in IE?
Can anyone help me?

Thanx in advance,
Yurij


<url:
http://www.google.com/search?q=inter...t+detect+flash
/>

Second link produced is:

<url:
http://www.macromedia.com/support/fl..._detection.htm
/>

which describes how to detect Flash using Flash itself. If that doesn't
suit you, there is a link to:

<url:
http://www.macromedia.com/support/fl..._detection.htm
/>

which contains the following paragraph:

"Note: The Macromedia Flash deployment kit is a complete Flash Player
detection system that meets the needs of most developers. If you have a
specific detection requirements, the methods discussed in the rest of
this TechNote may prove useful. Otherwise, download and install the
deployment kit."

There are links in that paragraph to the Flash deployment kit.

--
| Grant Wagner <gw*****@agrico reunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2325
by: Jan Vinten | last post by:
Hello, I'm looking for a javascript, that can detect which java VM is installed and what the current version is. Can any of you give me some details? Best regards, Jan Denmark
4
9778
by: The Plankmeister | last post by:
Hi. I'm redesigning my site using CSS and have just decided to start again from scratch as I was using too much javascript to do positioning and stuff. My question is: What version of CSS is it safe to use? Since I last used CSS, version 2, 2.1 and 3 have popped up. Is it still better to use CSS1, or is it safe to use CSS2? Or 2.1? I guess 3 is not a good idea right now. Any comments appreciated...
0
1947
by: | last post by:
Hi, I want to write a small plugin/script/component (in .NET preferably) for internet explorer that can read information on a web page. More specificly: i want to read the html body of a displayed web page (in explorer), and based on that information , display information in a popup, other window, orso
6
486
by: D H | last post by:
Are there any plans by Microsoft or anyone else to ever create a browser plugin that can run .NET apps? One that can work in any browser like the Flash or Acrobat plugins? I know about smart clients and clickonce (below), I was just curious. This is almost a showstopper for developing educational software if there will never be any way to run it in the browser. I thought since ..NET can sandbox program execution it wouldn't be a big...
5
3458
by: Andy | last post by:
Hi, I'm trying to use javascript to detect the version of internet explorer before running an active x control. I'm after the full version number (eg not just IE6 but 6.0.2800.1106). Is there any way of getting this using javascript? If not, can anybody suggest how i could go about getting it? many thanks in advance,
1
2084
by: almir | last post by:
Hi, is there a way to develop a plugin for Internet Explorer with .net, is there a source in internet describing this? I need to develop a small plugin for intranet which starts local exe file wiht parameter from url. thanks
4
2097
by: henry | last post by:
Hi all, I'm building a website which provides contents that only work for some browser types and versions. I know I can get most of the client browser information using HttpBrowserCapabilities class, but I can't find a way to determine IE update version or service pack number. Any ideas? TIA Henry
0
4513
by: gaurav2325 | last post by:
Hi, I would like to create a plugin for internet explorer to run my document. My document contains specific type of data, so that, I want whenever the user open that document (that is word document with special data embeded) my plugin gets the id of that embeded object and open with the specific application of MS office. Pls help me out creating that plugin. I tried MSHTML (but dont have complete idea whether will it help or not) ...
4
11483
by: aotemp | last post by:
Does anyone know how to detect the version of Java installed? My website has an application that requires java 1.5+ to be installed, basically if the user doesn;t already have it installed I redirect them to the java download page... thanks!
0
8995
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9378
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9253
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2216
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.