Help !! I am using IE 6.0 
Author Message
 Help !! I am using IE 6.0

<script language="VBScript">
    Set WshShell = CreateObject("WScript.Shell")
    Call WshShell.Run("%windir%\notepad.exe")
</script>

Just forgot to mention the version of IE i am using in the previous
post on CreateObject .. it is IE 6.0 and the above script when placed
in a web page causes the security warning of "The page contains
ActiveX controls that may be harmful ...." My security settings in IE
for Active X controls have been set to Enable for the entire section
under Active X controls ... How do I suppress this ??? Help !!!

TIA,
  Vanitha



Tue, 21 Sep 2004 06:58:47 GMT  
 Help !! I am using IE 6.0

Quote:

> <script language="Vbscript">
>     Set WshShell = CreateObject("WScript.Shell")
>     Call WshShell.Run("%windir%\notepad.exe")
> </script>

> Just forgot to mention the version of IE i am using in the previous
> post on CreateObject .. it is IE 6.0 and the above script when placed
> in a web page causes the security warning of "The page contains
> ActiveX controls that may be harmful ...." My security settings in IE
> for Active X controls have been set to Enable for the entire section
> under Active X controls ... How do I suppress this ??? Help !!!

You can't supress it. It is part of the securtity settings in IE. Maybe if the
user sets his security settings to very low, the message will go away, but I
wouldn't recommend to do that.

--
torgeir



Tue, 21 Sep 2004 07:04:06 GMT  
 Help !! I am using IE 6.0
Whether you use JScript's new ActiveXObject() or VBScript's CreateObject() or whether you get the prompt or the failure, the issues are still the same...

Q195826 - PRB: CreateObject Fails from Client-Side Scripts
http://support.microsoft.com/support/kb/articles/Q195/8/26.ASP

Or you can simply use HTAs instead - as simple as saving the file with .hta instead of .htm as the extension. .hta files are hosted by mshta.exe rather than iexplore.exe, and have a security model comparable to a conventional Windows desktop application. Of course accepting and executing an HTA is also up to the end user...

Just remember that wscript/cscript.exe is still NOT the host. So the intrinsic WScript object isn't available, but the entire DHTML DOM is (pretty fair trade if you ask me ;-)..

Description of Internet Explorer Security Zones Registry Entries
http://support.microsoft.com/support/kb/articles/q182/5/69.asp

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--

Quote:

> <script language="Vbscript">
>     Set WshShell = CreateObject("WScript.Shell")
>     Call WshShell.Run("%windir%\notepad.exe")
> </script>

> Just forgot to mention the version of IE i am using in the previous
> post on CreateObject .. it is IE 6.0 and the above script when placed
> in a web page causes the security warning of "The page contains
> ActiveX controls that may be harmful ...." My security settings in IE
> for Active X controls have been set to Enable for the entire section
> under Active X controls ... How do I suppress this ??? Help !!!

> TIA,
>   Vanitha



Tue, 21 Sep 2004 11:47:37 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. flickers / jerks in IE 6.0 using DSO

2. cannot print when using IE 5.5 and 6.0

3. VB 6.0 and IE 6.0 system OCXs and DLLs incompatibilities

4. Change printing orientation or page setup in IE 6.0 with VB 6.0

5. VB 6.0 and IE 6.0

6. Active X controls not working in IE 5.5 but works in IE 6.0

7. IE 55 sp2 and IE 6.0

8. IE 5.0 / IE 6.0 Question

9. I am trying to update a record, i am not using data control

10. I am trying to update a record, i am not using data control

11. VB + databases: I am looking for resources, ie: reference books

12. True DBGrid Pro 6.0 + Checkbox (Bin am verzweifeln!)

 

 
Powered by phpBB® Forum Software