
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