View Single Post
Old 11-08-2006   #1 (permalink)
Ty


 
 

IE7 detect protected mode in script

Hi,

I was referred to this group because the people on the scripting/IE
groups thought I'd have better luck here.

I need to identify if IE7 is running in protected mode on Vista so my
web page can help the user (in a user friendly way) add my site to their
trusted zone.

Does anyone know how to do this using scripting?

I've had the following 2 suggestions so far:
1. get the temp directory and if it ends in a directory called "Low"
then the browser is likely to be in protected mode.

2. use a try/catch block to capture the exception from performing an
operation that is prohibited when running in protected mode.

I like the 2nd suggestion the best since it will probably get fewer
false positives than the 1st suggestion.

Does anyone have a suggestion for the prohibited operation I should use?

Naturally, I want the script to be as reliable and robust as possible.
It's pretty frustrating that there is a function to do this when writing
a browser extension but there seems to be nothing when scripting on web
pages...


Thanks
Ty

Please reply to the group as my e-mail probably won't work.
My System SpecsSystem Spec