Article:
 |
|
Plug-In Detection with JavaScript
|
| Subject: |
|
what about other plug-ins ? msWord etc? |
| Date: |
|
2003-02-13 07:08:04 |
| From: |
|
anonymous2
|
Response to: what about other plug-ins ? msWord etc?
|
|
I've used the following objects:
Scripting.FileSystemObject
Outlook.Application
Word.Application
Excel.Application
Remember that Javascript now has try...catch() syntax which I've successfully used to degrade gracefully if creating one of these objects fails (because it isn't installed/isn't working properly etc).
Also remember to quit word [objWord.Quit()] on the onUnload event of the page, otherwise you'll build up quite a little collection of WINWOD.EXE processes... these WILL eventually crash your computer ;-)
Good luck.
|
Showing messages 1 through 1 of 1.
-
what about other plug-ins ? msWord etc?
2003-05-29 21:46:33
anonymous2
[Reply | View]
var objWord = new ActiveXObject("Word.Application"); always give the message
"An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"
which is really a irritating to a user...it would be nice to have some other workaround...