-
Detecting Flash in Internet Explorer.
I need to detect Flash in Internet Explorer. I know that i can detect it in
Netscape Navigator using javascript (navigator.plugins)but this only seems
to work with Netscape. Is there a way to do it in Internet Explorer? I need
something that works in both Netscape and Microsoft Internet Explorer. Thanks
in advance.
-
Re: Detecting Flash in Internet Explorer.
Try with ->
if (navigatorl.mimeTypes['application/x-shockwave-flash'].enabledPlugin
|| navigator.mimeTypes['application/futuresplash'].enabledPlugin)
alert('flash is installed')
or with ->
if (document.open('application/x-shockwave-flash')!=null) alert('flash
plugin found!')
Dan
"Jose Rodz" <rodriguezj.orion@afwtf.navy.mil> wrote in message
news:3c1e1323@147.208.176.211...
>
> I need to detect Flash in Internet Explorer. I know that i can detect it
in
> Netscape Navigator using javascript (navigator.plugins)but this only seems
> to work with Netscape. Is there a way to do it in Internet Explorer? I
need
> something that works in both Netscape and Microsoft Internet Explorer.
Thanks
> in advance.
-
Re: Detecting Flash in Internet Explorer.
Thanks. I checked both ways but they didn't work.
"Dan" <dann@hotpop.com> wrote:
> Try with ->
> if (navigatorl.mimeTypes['application/x-shockwave-flash'].enabledPlugin
>|| navigator.mimeTypes['application/futuresplash'].enabledPlugin)
>alert('flash is installed')
> or with ->
> if (document.open('application/x-shockwave-flash')!=null) alert('flash
>plugin found!')
>
> Dan
>"Jose Rodz" <rodriguezj.orion@afwtf.navy.mil> wrote in message
>news:3c1e1323@147.208.176.211...
>>
>> I need to detect Flash in Internet Explorer. I know that i can detect
it
>in
>> Netscape Navigator using javascript (navigator.plugins)but this only seems
>> to work with Netscape. Is there a way to do it in Internet Explorer? I
>need
>> something that works in both Netscape and Microsoft Internet Explorer.
>Thanks
>> in advance.
>
>
-
Re: Detecting Flash in Internet Explorer.
IE doesn't support the plugins array or the plugins object. IE doesn't use
plugins they use ActiveX controls. If you want to detect in IE you have to
use this code...
<script language = "VBScript">
if isObject(createObject("shockwaveFlash.shockwaveFlash.3")) or
isObject(createObject("shockwaveFlash.shockwaveFlash.4")) or
isObject(createObject("shockwaveFlash.shockwaveFlash.5")) then
msgBox("You hav Flash installed!")
else
msgBox("You dont have Flash installed!")
end if
</script>
You can try testing for shockwaveFlash.2 but in most current browsers it
isn't recognized anymore and will throw a "Cant create object" error.
In the near future Macromedia will be releasing version 6 so you will have
to update your code to test for shockwaveFlash.6 but as of now it too will
throw an error.
Note: do not add the runat=server attribute of the script tag or it will
always check if the server hosting the page has Flash. Not the client visiting
your site.
"Jose Rodz" <rodriguezj.orion@afwtf.navy.mil> wrote:
>
>I need to detect Flash in Internet Explorer. I know that i can detect it
in
>Netscape Navigator using javascript (navigator.plugins)but this only seems
>to work with Netscape. Is there a way to do it in Internet Explorer? I need
>something that works in both Netscape and Microsoft Internet Explorer. Thanks
>in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|