"P.T.Gowadia" <gow...@operamail.com> wrote in message
news:9dac1967.0201...@posting.google.com...
<SCRIPT LANGUAGE="VBSCRIPT" TYPE="TEXT/VBSCRIPT">
Function DetectObject(activeXname)
on error resume next
FoundStatus = False
FoundStatus = IsObject(CreateObject(activeXname))
If (err) then
FoundStatus = False
End If
DetectObject = FoundStatus
End Function
PluginStatus = DetectObject("ShockwaveFlash.ShockwaveFlash.5")
</SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
alert("Flash 5 present: " + PluginStatus)
</SCRIPT>
Since you are using IE only, you can use vbscript. Essentially, you
try to create an object based on a string you've passed it... If it is
created, it means it exists, if not, it doesn't. The key is knowing
what string to use to test if the object is create-able. The one I
use here tests for Flash 5.
I don't know what you are looking for, but it may be necessary to find
a suitable string in the WIndows Registry. I have gone through the
registry hunting down obscure "signatures" before, and it has worked.
Hope this helps,
H.C.
<SCRIPT LANGUAGE="VBSCRIPT" TYPE="TEXT/VBSCRIPT">
Function DetectObject(activeXname)
on error resume next
FoundStatus = null
FoundStatus = IsObject(CreateObject(activeXname))
If (err) then
FoundStatus = False
else
FoundStatus = True
End If
DetectObject = FoundStatus
End Function
</SCRIPT>
<SCRIPT LANGUAGE="VBSCRIPT" TYPE="TEXT/VBSCRIPT">
PluginStatus = DetectObject("owc.spreadsheet")
</SCRIPT>
I looked up some references at msdn.microsoft.com and found out that
the revelant activeXname was "owc.spreadsheet".
Thanks a bunch.
P.T.Gowadia
comman...@hotmail.com (Holden Caulfield) wrote in message news:<6d0ce83a.02020...@posting.google.com>...