dcsimg
Accessing registry values
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mario_Vargas
Posted On:   Monday, August 19, 2002 10:40 AM

I have a web page in which I want to know if the client has the Acrobart Reader installed locally (in the client's machine). So I don't know if I can access Registry Values through javascript or if there is another way to know if Acrobat Reader is installed locally.


Thanks in advance.

Re: Accessing registry values

Posted By:   Nitesh_Naveen  
Posted On:   Tuesday, August 20, 2002 03:13 AM

navigator.mimeTypes["application/pdf"].enabledPlugin

will give you null if teh client machine has no pdf readers configuered. The PDF reader need not be Acrobat Reade. you can probably try a code like this...

mimetype = navigator.mimeTypes["Application/PDF"]
if (mimetype) {
plugin = mimetype.enabledPlugin
if (plugin)
document.writeln("")
else
document.writeln("Click here to read the doc.")
}
else {
document.writeln("Sorry, can't show you this doc.")
}

Re: Accessing registry values

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, August 19, 2002 11:42 AM

Wouldn't that be wonderful, to have random Web pages with javascript on them that could dig around in the registry in the local OS....

About | Sitemap | Contact