Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OCX and HTA

90 views
Skip to first unread message

Mythran

unread,
Aug 5, 2002, 3:01:04 PM8/5/02
to
I have an object tag in an HTA....this creates a control we have created
here.

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


Phillip Windell

unread,
Aug 5, 2002, 5:01:01 PM8/5/02
to
That is from the security settings in the browser itself.


--
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...

Mythran

unread,
Aug 5, 2002, 5:11:42 PM8/5/02
to

"Phillip Windell" <pwin...@wandtv.com> wrote in message
news:uFJfBNMPCHA.2368@tkmsftngp10...

> That is from the security settings in the browser itself.

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>


Michael Harris (MVP)

unread,
Aug 5, 2002, 5:59:48 PM8/5/02
to


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
--


Mythran

unread,
Aug 5, 2002, 7:06:49 PM8/5/02
to
Well, I have some more information...

<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


0 new messages