Now, when I run the HTA, it says
"Your current security settings prohibit running ActiveX controls on this
page. As a result, the page may not display correctly."
What's up with that?
If you need more information, let me know :)
IE 5.5 sp2
Win2k - all patched up and ready to go.
Mythran
--
Ancient Chinese Secret:
If it is really, really, hard to do, then you
are probably doing it wrong to begin with.
Phillip Windell
pwin...@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com
"Mythran" <kip_p...@hotmail.com> wrote in message
news:QXz39.24$pw7.4...@newssvr13.news.prodigy.com...
Yes, I figured that out. But, this is in an HTA file. So, security
settings for the browser should *NOT* matter being that the HTA is ran as an
application. What am I doing wrong? Need to see code? TOUGH! JK, here it
is..:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MCIS Security Application</title>
<HTA:APPLICATION id="objHTA"
applicationame="My Application"
border="thin"
borderstyle="normal"
caption="yes"
icon=""
maximizebutton="yes"
minimizebutton="yes"
showintaskbar="yes"
singleinstance="yes"
sysmenu="yes"
version="1.0"
windowstate="maximized"
navigable="yes"
/>
<script language="VBScript">
Sub Window_OnLoad()
Dim objClient, strKey
Set objClient = objSecurity.SecurityClient
strKey = objClient.Key
objClient.LoginUser "Accnt"
End Sub
</script>
</head>
<body>
<OBJECT codebase="/test/SecurityClient.ocx"
CLASSID="clsid:61177EB6-2177-47F8-9425-78660DC2133C"
ID="objSecurity">
</OBJECT>
</body>
</html>
Well, I don't get that behavior for <object> elements referencing custom components from an HTA (IE 6.0 on Win2K - don't have easy access to an IE5.x box anymore).
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--
<object id="objSecurity"
codebase="SecurityClient.ocx"
classid="clsid:61177EB6-2177-47F8-9425-78660DC2133C">
This object didn't load.
</object>
The above code works fine....but when I change the codebase to something
different: codebase='http://localhost/test/SecurityClient.ocx' it says:
Your current security settings prohibit running ActiveX controls on this
page. As a result, the page may not display correctly.
Remember, this is an HTA application (has the .hta extension)....this error
keeps popping up on multiple machines (Win2k Pro) with IE5.5SP2. Also, I
tried removing the HTA:Application tag, and this didn't help (not that it
would, but I had to try something).
Thanks!
Mythran