Java Plugin Detection using VBScript on Internet Explorer

Hi,
I need a way to detect when the plugin version is above a certain version number (such as 1.4.1 or higher) so that I can give the user some extra info as to what is happening when the plugin is downloading automatically on Internet Explorer. Something like :-
"Please wait for Java plugin to download"
At present there is a long delay when the user may not know what is happening as no info is relayed back to user.
I know that the presence of the plugin can be detected using vbscript but not with JavaScript but how do i determine that the user has 1.4.1 or higher. I use the following code:
<script language="vbscript">
If IsObject(CreateObject("JavaPlugin"))=True Then
document.writeln("some info to user")
End If
</script>
This tells me if a JavaPlugin is installed but not what version so we still dont know whether the applet will run or the plugin will download.
I have also tried:
<script language="vbscript">
If IsObject(CreateObject("JavaPlugin.141"))=True Then
document.writeln("some info to user")
End If
</script>
this works but what if the user already has a version greater than 1.4.1 this is not detected and a nonsense message saying that the Java plugin is downloading is displayed.
Any ideas?

Here's JavaPlugin detection for netscape and ie using JavaScript . . .
Throw this in a .js file and source it at the start of you html.
function detectPlugin() {         
     var thePlugins = detectPlugin.arguments;     // allow for multiple checks in a single pass
     var pluginFound = false;               // consider pluginFound to be false until proven true
     // if plugins array is there and not fake
     if (navigator.plugins && navigator.plugins.length > 0) {
var pluginsArrayLength = navigator.plugins.length;     
          // for each plugin loop through all desired names and check each against the current plugin name
for (pluginsArrayCounter=0; pluginsArrayCounter < pluginsArrayLength; pluginsArrayCounter++ ) {
var numFound = 0;
for(namesCounter=0; namesCounter < thePlugins.length; namesCounter++) {
                    // if desired plugin name is found in either plugin name or description     the pluginFound                     
if( (navigator.plugins[pluginsArrayCounter].name.indexOf(thePlugins[namesCounter]) >= 0) || (navigator.plugins[pluginsArrayCounter].description.indexOf(thePlugins[namesCounter]) >= 0) ) {
numFound++;
               // now that we have checked all the required names against this one plugin,
               // if the number we found matches the total number provided then we were successful
if(numFound == thePlugins.length) {
pluginFound = true;
                    // if we've found the plugin, we can stop looking through at the rest of the plugins
break;
return pluginFound;
function noJavaPlugin(){
window.open("http://plugin_location");
function redirect_users(URL){
location.href = URL;
if(navigator){
browser_string = navigator.appVersion + " " + navigator.userAgent;
if (browser_string.indexOf("MSIE")>=0) {
          document.write(' <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"');
          document.write(' CODEBASE="javascript:noJavaPlugin()" width=1 height=1>');
          document.write(' <param name="type" value="application/x-java-applet;version=1.4">');
          document.write(' <param name="cache_option" value="Plugin">');
          document.write(' <param name="cache_archive" value="">');
          document.write(' <param name="MAYSCRIPT" value="true">');
          document.write(' </object>');
     else {
          if (! (detectPlugin("Java Plug-in 1.4.0_01 for Netscape Navigator (DLL Helper)"))) {
               noJavaPlugin();
else{
     noJavaPlugin();
redirect_users("http://place_to_go_if_they_have_plugin");

Similar Messages

  • I cannot use JAVA with Firefox but I can use it with Internet Explorer WHY?

    I have never had a problem when JAVA 7 was needed to use a program. Until now. Firefox will not allow me to use Java. I have to open Internet Explorer when working with any program and it works.

    To protect Firefox users, Mozilla has blocked/disabled Java 7 u6 and below due to serious security flaws in the previous versions of Java 7. The security flaw would also apply to any other browser using the affected versions of Java 7. You can see the version of Java and whether it is disabled in Add-ons > Plugins; look for "Java Platform SE...". See - https://addons.mozilla.org/en-US/firefox/blocked/p138
    You can check your '''''enabled''''' Plugins at any time - https://www.mozilla.org/en-US/plugincheck/
    Information about Java, testing and updating it - https://support.mozilla.org/en-US/kb/use-java-plugin-to-view-interactive-content

  • How can i use application for internet explorer on the safari web browser ?

    I have a digital video recording system, which uses the the Internet Explorer for Remote Survelliance. It usually works with chrome and mozilla by adding ie-tab  plug-in's to it. Is there any such ie-tab for the safari. ?

    Is there any such ie-tab for the safari. ?
    Rather doubt this considering MIcrosoft hasn't written IE for Mac in years.
    IE tab for Safari. Sorry, no.

  • I have no idea how to use Firefox. I used to have Internet Explorer 7 but am unable to connect to it anymore. How do I use Firefox? I know how to use a computer, somewhat, but am not as savy as I'd like to be. I will appreciate your help.

    I have no idea how to use Firefox. I used to have Internet Explorer 7 but am unable to connect to it anymore. How do I use Firefox? I know how to use a computer, somewhat, but am not as good at it as I'd like to be. I will appreciate your help.

    You can look at this post in this MozillaZine forum thread about inspecting a sessionstore file and possibly extract URLs.
    *http://forums.mozillazine.org/viewtopic.php?f=38&p=12098147&start=60#p12098147
    You can open the Browser Console (Firefox/Tools > Web Developer).
    Paste the JavaScript code in the command line and press the Enter key to run the code.
    *Toggle the devtools.chrome.enabled pref on the <b>about:config</b> page to true to enable the command line
    *https://developer.mozilla.org/Tools/Browser_Console#Browser_Console_command_line

  • Error when using SPM in Internet Explorer

    Hi
    When we use SPM in Internet explorer, at the bottom left of the screen it gives a message as "error on page". Why is this happening?
    Regards

    Hi Malathi
    This is more of a IE > Flash > Portal conflict which can be simply ignored. It has no impact on SPM. Infact you wont experience this if you use some other browser.
    Regards
    Rajesh

  • PDF will not open in my firefox browser although i have updated my jave and adobe, they open in internet explore

    I recently downloaded the latest version of adobe reader, jave and the newest firefox version. I think 3.6.4 (but i could be mistaken). Ever since my firefox updated today 3/8/10 it has stopped opening pdf's in browser. All i see is a blank screen or sometimes just the loading blue bar. It will not open. I do not have this problem when i try an open the same files using internet explorer.

    See if the solutions in this article help to solve your problem: [[Opening PDF files within Firefox]]. For more information on using Adobe within Firefox, see [[Using the Adobe Reader plugin with Firefox]].

  • Java -Plugin detected  JRE collission

    Hey ia ma using the follow script
    <script language="javascript">
    var _app = navigator.appName;
    if(_app == 'Microsoft Internet Explorer'){
    document.write( '<OBJECT ID="VoiceRecorder" class="recStyle"',
    'classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"',
    'WIDTH = 250',
    'HEIGHT = 150',
    'codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2">',
    '<PARAM NAME = CODE VALUE = RecAndPlay.RecAndPlay >',
    '<PARAM NAME = CODEBASE VALUE = "/webmail/webmail/" >',
    '<PARAM NAME = ARCHIVE VALUE = sRecAndPlay.jar >' ,
    '<PARAM NAME = "type" VALUE="application/x-java-applet;jpi-version=1.4.2">',
    '<PARAM NAME = voiceData VALUE="">' ,
    '<PARAM NAME=PLAY_ONLY VALUE=false>',
    '<PARAM NAME=VOICE_URL VALUE="inMem">',
    '<PARAM NAME=MAX_REC_LIMIT VALUE="300">',
    '</OBJECT>');
    else if(_app == 'Netscape'){
    document.write(' <EMBED ',
    'type = "application/x-java-applet;version=1.4" ',
    'java_CODE = "RecAndPlay.RecAndPlay"',
    'java_CODEBASE = "/webmail/webmail/"',
    'java_ARCHIVE = "sRecAndPlay.jar"',
    'WIDTH = "250"',
    'HEIGHT = "150"',
    'PLAY_ONLY = "false"',
    'VOICE_URL = "inMem"',
    'MAX_REC_LIMIT = "300"',
    'pluginspage="https://java.sun.com/products/plugin/index.html#download">',
    '</EMBED>');
    else {
    document.write('<p> Sorry, unsupported browser.</p>');
    </script>
    Previous it was working wheb i had jre. But once i installed jre 1.4 (and also tried with jre 1.5) it is giving this error in MOZILLA browser. But working fine in IE browser.

    first uninstall all the previous JRE version.
    Open Jav plug-in from control panel and select the java tab,
    Select only one JRE version into this tab.
    restart ur browser, perhaps u does not get this problem in future.

  • What JVM is being used in my Internet Explorer ?

    I have a web-bases/java-bases application that does not work when JRE 1.4 is active.
    I disable it for Internet Explorer in the Java Plug-In Console on the Browser tab and then things work fine.
    How do I know what JVM is being used then ?
    Some configuration info :
    WinME, IE 6.0, JRE 1.4

    When you install JRE1.4.0, it asks if you want to link the JRE to IE and Netscape 6...if you answered yes, what it does is to create and automatically select a new option box in IE (see Tools-->Internet Options-->Advanced-->Java Sun-->Use JRE1.4.0...) -- if you elected not to link the JRE, the option box is not created.
    Without the new option box, IE works like this:
    1) Unless the applet has been converted with the HTMLConverter that comes with your SDK, IE will run the applet with its native JVM which is version 1.1.5.
    2) If the HTML file has been converted, IE will check to see what version of the JRE is required and what is already on the system. If a different JRE is required, it will prompt the user to download the required JRE and then run the applet -- if the user doesn't want to do the download, the applet will simply fail to start.
    Hope this helps!
    ;o)
    V.V.

  • Java Applet Background Color Problem on Internet Explorer

    Hi,
    Please check out the following URL:
    http://www.utopiainteractive.com/clients/AkonFinal/glossary.htm
    The menu bar is writting in Java Applet. If you scroll down the page, and scroll back up, I see white background as I scroll back up. It happens only on Internet explorer. Neither Java Applet nor HTML Body bg color is white. I am kinda lost, and any help would really be appreciated.
    Thank you and look forward to hearing from someone soon.
    Sachin

    Hi,
    Well I used HtmlConver utility to generate applet html code, so I assume nothing is wrong with Object tag. Do you know what could cause this problem on Internet explorer? To be honest, I spent last couple of days, but I am just lost. It absolutely works fine on Netscape.
    Thanks,
    Sachin

  • Using openDoc in internet explorer

    Hi all,
    I have a pdf file with links to other documents using JavaScript, openDoc. This works perfect in Acrobat reader and Acrobat pro. Now some user wants to open the pdf in Internet Explorer with the pdf plugin. This works to some extent, other JavaScripts that jumps to other pages in the same document works but the OpenDoc does not. The pdf is located on a file server, and I am using relative paths but I have tried with absolute paths aswell without any success. So my question is, is this feature locked in web browsers per default or am i missing something fundamental?
    Regards,
    Ingman

    File upload feature is disabled on Internet Explorer for security reasons but you can try using the official Facebook app, or you can add your facebook account through Settings->email+accounts and use the built-in WP8 sharing options. Once you add your facebook account, you can tap and hold on the photo and select Share... option to share the photo on Facebook.
    The silence will fall

  • Java applet not showing up in Internet Explorer 8

    Hi,
    I have an applet tag in a JSP, and it is not working in Internet Explorer 7 and 8.
    Yes, I have read that the applet tag was deprecated - the problem is that it is working for my colleague, also in IE8.
    Java is enabled on my machine/IE options.
    Could anyone please suggest what the issue might be?
    Thanks.

    I haven't tried resizing the applet yet. Since you all mentioned it I am going to play with that later today.
    To elaborate on the fix, yes - updating to Java 6 - 16 will allow IE 8 to display applets.
    Just in case anyone else runs into this issue as well:
    I am running Vista on a 64 bit.
    It has two directories named Program Files:
    One named just "Program Files" - evidently for the 64 bit stuff.
    Another named something like "Program Files (x86)".
    Apparently it will look into "Program Files" - the 64 bit one by default.
    I haven't found a 64 bit version of Java 6 - 16 to install - the only 64 bit one is some version of 1.5, unless I am missing something, so the Java 6 - 16 installed into the Program Files(x86), and 1.5 into Program Files. Windows pointed JAVA_HOME to 1.5 because it looks into the Program Files by default.
    The result was that when I went to the Java site it analyzed my Java version and told me I have the most up to date version. But -
    java -version on the console returned 1.5. Confusing at first, but on such systems, apparently the JAVA_HOME has to be explicitly repointed to the (x86) Program File directory.

  • PDF's in Acrobat Reader X will not open when using the browser, Internet explorer opertes all ok? Mozella 4 is the default browser! Windows XP Home ed with all latest updates!

    When using the Mozella Firefox 4 browser and the NEW version Adobe Reader X, PDF's online will not ever open. After 1-3 minuites, I eventually get a message the Adobe reader is running, but need to close and try again! I get same results when trying again.
    Internet Explorer operates and opens the online PDF's all ok and the Adobe Reader X seems to operate all else ok!
    I think, but not sure, that this issue appeared when the Adobe Reader updated from the older version 9 or so to the NEW Adobe Reader X version about 1 or 2 weeks ago, but not sure. I just remember that Mozella always worked ok previously to the Adobe Reader X version for opening online PDF's last month, etc.
    Note that I said that Internet Explorer browser operates ok Using the New automatically upgraded Adobe Reader X for viewing PDF"S! (adobe notified me that the new version 10 (X) was available for updating, etc) I also just discovered that google chrome browser opens the online PDF's ok!
    I have not trying re-storing the computer to the previous month, etc, since the issue seems to be with Mozella not liking the Adobe Reader X version and Internet Explored browser operating ok!
    Any ideas????

    I had the same problem and my solution was to disable the PDF extension that came with Firefox 4 which belongs to another company. I found out that it wast interfering with ReaderX. I unabled it and restarted Firefox. I have had no problems since then. Go to Tools, Add-On and click on Extensions and disable the PDF extension. I hope this helps

  • Scripting error when using 64 bit internet explorer

    Could you please give me a solution to the following:
    Laptop  HP Pavillion dv7-3112sa  Windows 7
    Printer  HP Photosmart B209
    Wireless connection Netgear DGND 3300 v2
    When I use internet explorer 64 bit and try to print, I get a message "Scripting Error" and it will not print.
    This is OK on 32 bit.
    I cannot update my HP software because I lose wireless communications altogether and have to do a restore to get it to work again.
    This question was solved.
    View Solution.

    Scripting errors are related to how the website behaves with a browser.
    In this case, it is printing script that is having an issue and it appears to be with the 64bit Internet Explorer since it works fine with Internet Explorer 32bit.
    Review this article from Microsoft regarding this issue.
    You have already found the best resolution to this issue:  Using 32bit Internet Explorer.
    64bit web browsing is still a very small portion of web sites and very few fully support the 64bit browsing experience.  I highly recommend using a 32bit web browser for viewing websites as this will give you the best compatibility as every website still supports 32bit browsing, but not all sites are fully compatible with 64bit browsers.  
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Text Message sent from LabVIEW using ActiveX and Internet Explorer

    I am fairly new to LabVIEW and I am trying to make a VI that will be able to text me and let me know when a test is about to be done or if something has caused it to shutdown.  My VI uses www.onlinetextmessage.com but I can't get it to click the Send Message button. 
    I can get it to insert text in the text fields.  I just can get it to click send.
    Can you help me?
    Solved!
    Go to Solution.
    Attachments:
    My Texting.vi ‏38 KB

    MoonMan wrote:
    Well it sure seemed like that should have worked but no luck. When I try to add the FormElement with submit in my VI after I wire in the reference wire it automaticaly changes to a regular Element.  Then it wont run because submit is not an option for Element, I have to change the submit back to click. 
    I dont understand, it really seems like the click should work, and it seems like the submit should have also worked.  Getting text into the different fields was easy enough.
    Did you try my modified version?  That uses IHTMLFormElement properly.  If you then change the element name from "Send Message" to "txtmsg" (the name of the form), it appears to work - or at least, it pops up an advertising window in Internet Explorer (I didn't fill in any of the fields as I don't want to give out my phone number or email address to some random website, especially one that pops up advertising).
    When you try to change to FormElement, what steps are you taking?  Are you changing the type of the "type" input to Variant to Data?  You'll need to right-click on that constant, Select ActiveX Class... and choose IHTMLFormElement.
    As a LabVIEW style note, you should close all the ActiveX references you open.  That means all the references (IHTMLFormElement, IHTMLElementCollection, etc) need a Close Reference when you're done with them.
    Again, I think sending an email is a better way to send a text message from within LabVIEW, and for that matter, you might be able to find a better website for doing it.  TMobile allows their subscribers to send SMS messages through their website and it appears that AT&T provides a similar service; Verizon provides a web page to send SMS to their users.
    EDIT: by the way, the submit button is not a named element (it has a "Value" property but not a "Name" property) so you can't get a reference to it by name.  If you probe the item output of the IHTMLElementCollection property node, you'll see it returns an empty variant, which is why "click" has no effect.

  • Game not handling screen scaling when using zoom on Internet explorer on Windows 8

    Hi,
    I'm completely stuck trying to fix a bug in one of our games where any user with Windows 8 playing using Internet explorer have issues with screen scaling and input when their browser is not at 100% zoom level.
    Today, I've tracked it down to a bug in Flash player that was reported 9 months ago, and which seems to have been fixed in flash player 11.9 ([MSFT 3612555][Win 8] - High DPI Displays - Corrects an issue where some content was not scaling with zoom changes). However, it is still occuring for our users. I have the latest flash player installed (13.0.0.206), and the latest flex sdk installed (4.6). Additionally, I'm targeting version 12 when compiling. I'm not sure what to do next, has anyone come across this problem in the past?
    Thanks,
    Graeme.

    Easy solution found.
    It was using the WDS boot image known as "wdsmgfw.efi".
    For proper UEFI mode booting with PXE, remove the original wdsmgfw.efi and make a copy of the file bootmgfw.efi in your RemoteInstall\Boot\x64 folder, and rename that copy of bootmgfw.efi to wdsmgfe.efi.

Maybe you are looking for

  • Open Directory access from outside of network / internet

    Hello all, Got a question I'd love to get some help on, I have some users who are outside of my network and I'd like them to connect into the open directory on our leopard server so they can use the Shared iCal calendars, addresses, etc. So my questi

  • How to update XML file using XSLT

    Hi there, I have a "small" issue with exporting data to an XML file using XSLT. A two steps process is needed to import data from a non-hierarchical XML file into ABAP, change the data, and then update the XML file with new values. The problem is not

  • TIFFs won't print from my InDesign file

    I'm printing proofs from my InDesign document, and all my other linked graphics print, but any TIFFs will not. I've tried different printers and it's the same. Any ideas?

  • Canon LiDE 80 with OSX Mavericks?

    Does anyone have this scanner working in mavericks? I seen some people had success in OSX 10.9. But I downloaded the most current drivers they had (10.4 I believe) and when I try to install / run it I am greeted with the error message 'You can't open

  • InCopy CS2 Copyfitting with InDesign CS3, Version Cue CS3

    Hello. We are using InCopy CS2 together with InDesign CS3 as part of an Version Cue CS3 workflow.  Certain stories do not copyfit exactly in InCopy CS2. They copyfit properly in InDesign CS3, but when the assignment with these stories is opened in In