🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.acrobat.reader
Article #13468

Re: Plug-in(javascript) to detect Adobe Reader ??

#13468
From: SaGS
Date: Thu, 16 May 2002 07:36
18 lines
1871 bytes
If all you need is to find if the client's browser knows how to handle PDF
files, then do an advanced group search on Google Groups
(http://groups.google.com/advanced_group_search) for msg ID
7107d90c.0110150040.45dda6a1@posting.google.com (returned subject is "HOWTO:
Detect from IE web page if Acrobat/ Reader installed") to get an answer for
IE. Netscape should work the same (not tested), or you can simply examine
navigator.mimeTypes[] (I think).

What this solution does:
(1) checks if the browser knows how to handle mime type "application/pdf",
and makes the result available in JavaScript;
(2) uses standard, published, methods; nothing undocumented, hacked, etc.

What it does not:
(1) does not check for a specific application or version (the only reason I
refered to Acrobat/Reader was because this is how most people will phrase
this problem; the solution uses nothing specific to Acrobat/Reader);
(2) does not poke around the user's registry/ hard-disk/ etc.
Technical Details
Message-ID: <EBE55B5BC9C77B61C40B0526EF52BDFB@in.WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef887cb.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109513,68e15286ad9fd193
X-Google-Attributes: gid109513,public
X-Google-ArrivalTime: 2002-05-16 00:37:25 PST
From: "SaGS" <AntiSpamRemoveAllZsags54Z95@hotZmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.acrobat.reader
Subject: Re: Plug-in(javascript) to detect Adobe Reader ??
Message-ID: <EBE55B5BC9C77B61C40B0526EF52BDFB@in.WebX.aaQKaf7vad4>
Date: Thu, 16 May 2002 00:36:26 -0700
References: <ef887cb.-1@WebX.aaQKaf7vad4>
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit