Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2009, 01:17 AM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Detect software installation using a browser

Is it possible to determine using Javascript, if a particular software is installed on a client PC? If so, how would I go about doing this? An example would be great.

Currently, I can detect if a client has enabled pop-blockers, cookies and what browser and operating system their running , but I can't seem to detect if x software is installed.

I'm writing a web page that diagnosis the client PC and determine if they have the minimum system requirements.

Thanks,
Jezz
 
Old October 21st, 2009, 04:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

dear friend
as u know JavaScript is clientBase language & of course it must be limited to access some info in PC to prevent other security problems
so I dont think u would be able to do it by JavaScript
__________________
Always,
Hovik Melkomian.
 
Old October 21st, 2009, 04:06 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

As stated it's not generally possible. In IE you have some chance using a trial and error approach on some software. For example you could test for msxml2.domdocument.6.0. by using:
Code:
var dom;
try
{
  dom = new ActiveXObject("msxml2.domdocument.6.0");
  alert("DomDocument.6.0 available.");
}
catch(e)
{
  alert("DomDocument.6.0 not available.");
}
but you can't actually tell why. It maybe installed but the user has disabled ActiveX. This approach would only be suitable on an intranet where you could guarantee that security settings allowed code like this to run.
__________________
Joe
http://joe.fawcett.name/
 
Old October 21st, 2009, 07:57 AM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks guys.

It does seem you need to run activeX to query software and version and its trial and error. I believe with Adobe Acrobat Reader you can do the following.

=new ActiveXObject('AcroPDF.PDF.1');

This seems to work.

Cheers,
Jezz





Similar Threads
Thread Thread Starter Forum Replies Last Post
run a software from web browser jun99 PHP How-To 1 December 28th, 2005 09:50 AM
best WWW Browser (FREE!) software crmpicco HTML Code Clinic 13 November 9th, 2005 11:18 AM
how to detect in asp.net browser window close connect2sandep ASP.NET 1.0 and 1.1 Professional 1 October 31st, 2005 05:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.