How to findout the client machine has installed flash player using javascript? - javascript

Cross Browser Flash Detection in Javascript
I have use the flash_detect.js as mentioned in above link. It works fine in IE8 and Chrome 29. But its not working in FF 25.
Can anyone please me here to resolve this issue?
else
suggest if any other better ways to do this.

Hope it will help you:
Detect Flash with JavaScript
http://www.blangdon.com/writing/about/detect-flash-with-javascript/
Or
http://www.javascriptkit.com/script/script2/plugindetect.shtml

Note that a 32 bit Firefox version will require 32 bit versions of plugins, so make sure that you have the correct version.
Firefox also finds the Flash plugin for me as installed by the Flash installer rpm file
/usr/lib/flash-plugin/libflashplayer.so
As an alternative you can install the Flash plugin (place a symlink) in your home directory /home//.mozilla/plugins/libflashplayer.so
You can try to delete the pluginreg.dat file in the Firefox Profile Folder and maybe addons.sqlite as well to reset the plugin registry databases.
See Re-initializing the plugins database:
https://support.mozilla.org/kb/troubleshoot-issues-with-plugins-fix-problems
OR just see this..
Cross Browser Flash Detection in Javascript

I need to install flash played in FF's extension then only it able to identify whether flash player is installed or not.

Related

Open HTML link with IE11 [duplicate]

I have designed a website using Firefox and am now looking to integrate a softphone into the webpage, but unfortunately it is made with ActiveX, so Firefox won't support it.
I have tried opening my page in IE9, and it looks a mess because I've used CSS3 for a lot of it and haven't coded it for different browsers because we will only be using Firefox within the office.
Is there a way that I can tell my page in Firefox to specifically open a new page in Internet Explorer and just have the softphone in there? Or is there a way to get ActiveX running in Firefox with a plugin or something?
You can open a link in Microsoft Edge from any browser by adding microsoft-edge: in front of the url in the HREF.
EDGE (works)
I don't know how to get it to work in other browsers though. My team and I spent quite a bit of time on it and couldn't find a raw HTML/JavaScript solution.
I don't think you can open a IE window from firefox, but you can easily build a firefox plugin based on your activex using http://code.google.com/p/ff-activex-host/
It really depends on your exact situation.
If you are targeting multiple users outside a corporate network this is hardly possible to achieve. However, if you are targeting your company's network it's possible to do this using custom protocol.
Your link then would look like: ie://opens_in_ie.com
You'll have to make changes to registry of target computers though. More info about custom protocols is available here: http://msdn.microsoft.com/en-us/library/aa767914%28v=vs.85%29.aspx
In most cases, system administrator can do this remotely.
IETab V2 will let you open a tab within Firefox that runs the IE engine.
Once installed, you can force a link to open with IE by formatting the URL or bookmark like this:
chrome://ietab2/content/reloaded.html?url=http://domain.com
It's somewhat specific, but I created an internal site at work, and I wanted to link to another internal site that only works in IE. To do this, I created/defined my own application protocol in the registry. Then I added to my links the protocol header. This is similar to what apple does when you click a link and it opens iTunes. The downside to this approach, however, is that users will have to install the registry modification for it to work... like I said, it's really a solution for a very specific scenario.
Same answer as from chuck wallace
If you want to start from for example in Internet Explorer, go to C:\Program Files\Internet Explorer\iexplore.exe and create a shortcut to the Desktop.
When you check the properties from this created shortcut, you will see the Target: C:\Program Files\Internet Explorer\iexplore.exe.
Now you can place the shortcut from the website, behind the Target. It will show something like this: C:\Program Files\Internet Explorer\iexplore.exe www.nu.nl. Or this C:\Program Files\Internet Explorer\iexplore.exe https://stackoverflow.com.
This way it opens IE first and then the website.

_BROWSER_ has prevented an outdated plugin "Adobe Flash" from running on this site

Update 23/8/17: Link added.
I'm facing the following issue on our webshop:
After updating to WINDOWS 10 1703 our website is loading as usual but after a few sec the following popup message comes up:
'BROWSER' has prevented an outdated plugin "Adobe Flash" from running on this site. It occurs in IE and Chrome as well, although it doesn't have this issue on older versions of Windows or the latest MAC OS, or on mobile browsers.
There were already a couple of things I tried:
Reinstalling flash
Enabling and disabling the preference of HTML over flash and even tried with the local group policies in windows, but the issue still appears.
The 'funniest' part is that I'm not aware of the situation that we have any flash object on the site. When I was scrolling the source code there where just a few instances where I found something related to flash:
a flash player version checker - javascript (inside the client.js on the site)
in the fancybox jquery
Can these trigger this behavior?
Is there anybody who has experienced something similar lately? Is there a workaround to avoid this?
Thanks in advance
I believe that fancyBox is not related to this, unless it is used to display some flash content, but then it would be quite noticeable :)
Quite possible that "flash player version checker" creates some flash object to check for supported version. Try to disable it.

ActiveX control not accessible via JavaScript

Please look at this simple sample code to embed the VLC web plugin in IE and access a property of the plugin:
<div id="player">
<object type="application/x-vlc-plugin"
id="vlc"
width="676px"
height="386px"
classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921">
</object>
</div>
<input type="button" onclick="alert(vlc.VersionInfo);">
This works fine on PC#1, giving me the current Version of the plugin. On PC#2, on the other hand, this gives "undefined". From the debugger I can see that the vlc-object does not have the properties it should have.
What strikes me is that the plugin itself on PC#2 is capable of playing video streams (when adding the Src-Param to the object-tag). It just seems not capable of being accessed via JavaScript.
So far I've tried..
changing IE security settings to super-low on PC#2
adding the plugins classid to the Pre-Approved registry folder
checked for Group Policies that might disable ActiveX in IE somehow
several versions of VLC
Any ideas on what could cause such a strange behavior are very welcome!
EDIT: it might be relevant to add that PC#2 is running on Windows Embedded Standard (it's a WYSE ThinClient)..
I had same problem trying to access VLC object (both from NSAPI / ActiveX) from JS. On my case it depends from VLC release. Currently, if I use 2.0.2 all is ok (both NSAPI and AciveX). Newer releases seems to break JS wrapping of VLC object.
U can try with 2.0.2 release and check if u solve your problem.
I am in the dubious position to recommend Adobe Flash to someone. VLC active-X plugin may have more bugs than Flash since so many more people install Flash and use it inside Internet Explorer.
See Magnus Engdal's answer to this question Video element is not displaying in IE8?.
Another option would be to install a different browser: if you have the security clearance to install VLC surely you can also install Firefox or Google Chrome or Chromium or Opera...
Mardie questions are quite relevant. Are you otherwise restricted to IE? I am curious how this turns out.

check which flash plugin version between "internet explorer" or "Other browsers" is installed on the client

if you go on http://get.adobe.com/it/flashplayer/otherversions/ you can find there are two "current" flash player plugin version available for windows
one for internet explorer
one for the other browsers
Normally users need only one version installed (or even zero, if they use Chrome and the shipped version with it)
Unfortunately I have an external plugin that communicate with the browser and It needs explicitly installed the internet explorer plugin, also if the user navigate with Firefox.
For this reason I need to check not only if there is a flash plugin installed, but also if is installed the specified explorer version!
Is there a pure-javascript solution to make this check? ATM I loop over all the plugins in the browser searching for a specifed-name dll, but
it's ugly and I'm ashamed to do something like that
it's bugged: today I found my check failed, because the adobe-distributed plugin filename changed to from NPSWF32.dll to NPSWF32_11_2_202_235.dll
thanks

How to create a browser plug in?

I have to create a plug-in that will have to display information when user hovers over certain terms. Can anyone show me the direction how to do it?
I do not have much ideas about creating plug-ins. I know what i want to do can be done by java script. But can a java script file be installed as a browser plug in? any ideas on this will be appreciated! Thanks!
What you want to do is create a userscript. It's exactly what you're describing: a piece of javascript code installed in the browser as a plugin.
Userscripts are supported:
By Firefox using Greasemonkey
By IE with its own version of Greasemonkey
Natively (soon) by Google Chrome
Natively by Opera
And even by Safari
So support is on almost every major browser.
A userscript is the easiest solution for what you're trying to do.
Kango's Content Scripts are similar to userscripts, with perhaps better support for all browsers, and the extension (and thus also the user script) can be installed with one click if self-hosted instead of installing Greasemonkey separately.

Categories