Solved

Detect Adobe Acrobat Version & Redirect to upgrade

Posted on 2004-04-13
8
672 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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'…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

717 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