detecting activex security settings "script activex controls marked safe for scripting"
Posted on 2004-03-23
I need to detec if "script activex controls marked safe for scripting" is enabled or not.
I found this but it does not test specifically enough becuase I assume shell is not marked safe for scripting :) I am assuming that if I run the same code but trying to instantiate an object marked safe for scripting then I'll have what I am looking for. The solution is an IE only solution so does anyone know:
a) a better way to test for this?
b) an object marked safe for scripting that should be installed on all/most Windoze installs
on error resume next
set oShell = CreateObject("Shell.Application")
set oFolder = oShell.NameSpace("NUL:\")
if err.number <> 0 then
document.write "Unable to use CreateObject"
document.write "Able to use CreateObject"