Solved

Detect Adobe Acrobat Version & Redirect to upgrade

Posted on 2004-04-13
8
657 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now