Solved

Detect Adobe Acrobat Version & Redirect to upgrade

Posted on 2004-04-13
8
659 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
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…

863 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

25 Experts available now in Live!

Get 1:1 Help Now