Solved

Detect Adobe Acrobat Version & Redirect to upgrade

Posted on 2004-04-13
8
663 Views
Last Modified: 2012-06-27
Hello! I was wondering if anyone could tell me of there is a way to detect a users Adobe Acrobat version upon them clicking a link, and then if the version is below a certain criteria, present them with a page giving them the option to upgrade.  I would need this to work in both IE & Netscape.  Please let me know! Thanks ahead of time!  

Kirsten
0
Comment
Question by:klc20
  • 3
  • 2
8 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 10815327
Here a PAQ: http:Q_11473760.html
0
 

Author Comment

by:klc20
ID: 10815854
that PAQ makes it look like it can only be done in Netscape. Is that true?
0
 
LVL 7

Accepted Solution

by:
brgivens earned 250 total points
ID: 10816544
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:klc20
ID: 10816642
the javascript they are giving me on that page comes up as an error when i try to download it..........
0
 
LVL 63

Assisted Solution

by:Zvonko
Zvonko earned 250 total points
ID: 10816694
Here a copy:


/*******************************************************
ACROBAT DETECT
All code by Ryan Parman, unless otherwise noted.
(c) 1997-2003, Ryan Parman
http://www.skyzyx.com
Distributed according to SkyGPL 2.1, http://www.skyzyx.com/license/
*******************************************************/

var acrobat=new Object();

// Set some base values
acrobat.installed=false;
acrobat.version='0.0';

if (navigator.plugins && navigator.plugins.length)
{
      for (x=0; x<navigator.plugins.length; x++)
      {
            if (navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1)
            {
                  acrobat.version=parseFloat(navigator.plugins[x].description.split('Version ')[1]);

                  if (acrobat.version.toString().length == 1) acrobat.version+='.0';

                  acrobat.installed=true;
                  break;
            }
      }
}
else if (window.ActiveXObject)
{
      for (x=2; x<10; x++)
      {
            try
            {
                  oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
                  if (oAcro)
                  {
                        acrobat.installed=true;
                        acrobat.version=x+'.0';
                  }
            }
            catch(e) {}
      }

      try
      {
            oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
            if (oAcro4)
            {
                  acrobat.installed=true;
                  acrobat.version='4.0';
            }
      }
      catch(e) {}
}

acrobat.ver4=(acrobat.installed && parseInt(acrobat.version) >= 4) ? true:false;
acrobat.ver5=(acrobat.installed && parseInt(acrobat.version) >= 5) ? true:false;
acrobat.ver6=(acrobat.installed && parseInt(acrobat.version) >= 6) ? true:false;
acrobat.ver7=(acrobat.installed && parseInt(acrobat.version) >= 7) ? true:false;
acrobat.ver8=(acrobat.installed && parseInt(acrobat.version) >= 8) ? true:false;
acrobat.ver9=(acrobat.installed && parseInt(acrobat.version) >= 9) ? true:false;

0
 

Author Comment

by:klc20
ID: 10816831
thanks....i will try it
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 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