Foxit Corporation Forums  

Go Back   Foxit Corporation Forums > Portable Document Format (PDF) Tools > SDK ( DLL or ActiveX)

SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 23rd, 2007, 12:32 AM
halik halik is offline
Junior Member
 
Join Date: Mar 2007
Posts: 1
halik is an unknown quantity at this point
Thumbs up How determinate Foxit-plugin in browsers.

Hi.
I have one question.
How to determinate the presence of Foxit-plugin in browsers usign javascript-language.

For example for some version of AcrobatReader i usign javascript-code:
/*$Id: $*/
var acrobat=new Object();
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) {}

try{
oAcro7=new ActiveXObject('AcroPDF.PDF.1');
if (oAcro7){
acrobat.installed=true;
acrobat.version='7.0';
}
}
catch(e) {}
/* must be code for foxit-plugin /*
}
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:22 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2005-2008 Foxit Corporation. All rights reserved.