dcsimg
Acrobat Detection Script
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jarrod_Dieppa
Posted On:   Thursday, September 27, 2001 01:07 PM

I am trying to use javascript to detect what version of the Acrobat Reader a browser has installed. I am having trouble detecting the plug in for Internet Explorer with Javascript. I have found a way to do it with vbscript but I need to use Javascript. Can anyone help me? Any ideas or thoughts would be appreciated. I replaced the tag brackets with | so it would show up. This is what I have so far: |script language="javascript" type="text/javascript"| browser='OTHER'; if (navigator.appName=='Microsoft Internet Explorer') { browser='MSIE'; } if (navigator.appVersion.indexOf('MSIE 3')>0)    More>>



I am trying to use javascript to detect what version of the Acrobat Reader a browser has installed.
I am having trouble detecting the plug in for Internet Explorer with Javascript. I have found a way to
do it with vbscript but I need to use Javascript.
Can anyone help me? Any ideas or thoughts would be appreciated.
I replaced the tag brackets with | so it would show up.





This is what I have so far:




			
|script language="javascript" type="text/javascript"|

browser='OTHER';

if (navigator.appName=='Microsoft Internet Explorer')
{
browser='MSIE';
}
if (navigator.appVersion.indexOf('MSIE 3')>0)
{
browser='MSIE';
}

if (browser=='OTHER')
{
var acrmode = false

acrPlugin = navigator.plugins['Adobe Acrobat'];

if (acrPlugin.description == 'Adobe Acrobat Plug-In Version 5.00 for Netscape')
{
acrmode = true
}
}


|/script|

|script language="vbscript" type="text/vbscript"|

on error resume next
var acrmode
acrmode = IsObject(CreateObject("pdf.pdfctrl.5"))

-->
|/script|

|script language="javascript" type="text/javascript"|

function acrobatCheck()
{
if (acrmode){

}
else{

if (confirm('For best results, it is recommended that you open this file with the latest version of the Adobe Acrobat Reader. It appears you do not have the latest version installed. Would you like to download it now?'))
{
window.location='../mit/tsd/dl_acr.htm';
return false;
}
else
{
return true;
}
}
}

|/script|
   <<Less

Re: Acrobat Detection Script

Posted By:   michael_barbarino  
Posted On:   Wednesday, October 17, 2001 07:09 PM

I was wondering about this as well. I found this on the net (via Google). I tried it out with Acrobat 4.05 and 5.0 and it seems to work:

http://www.intranetjournal.com/ix/msg/29113.html
About | Sitemap | Contact