Solved

Detect Adobe Acrobat Version & Redirect to upgrade

Posted on 2004-04-13
8
660 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

810 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