As many of you know, Microsoft's Service Pack 2 for XP, as well as a
previous security patch, has made it very difficult for a web page to
launch another page via the Window.Open command. In searching for an
alternative way to open a window, I found that this could be done
using the InternetExplorer Object. The following code illustrates this
(thanks to Rick Strahl):
Set oIE = CREATEOBJECT("InternetExplorer.Application")
oIE.Visible = True
oIE.Height = 768
oIE.Width = 1015
oIE.ToolBar = False
oIE.AddressBar= False
oIE.statusbar = False
oIE.menubar = False
oIE.Navigate("http://www.SomeSiteName.com/SomePageName.asp?RespondentID="&
respondentID & "&OrgCode=" & OrgCode
My problem is this: When I use Window.Open to open such a page, it
does so directly without the ActiveX warning message "An ActiveX
control on this page might be unsafe to interact with other parts
of this page. Do you want to allow this interaction?" (The web page
I'm trying to open does contain a custom ActiveX control.) However,
when I try to Navigate to this same page in the window opened by the
InternetExplorer object (above), I get the ActiveX warning prompt.
The control is signed with Authenticode, ObjSafe is implemented in it,
and I've checked the registry to ensure that its component
implementations include "Safe for scripting" and "Safe for
initialization".
Can anyone furnish some clues as to how I can avoid eliciting the
ActiveX warning prompt using Navigate with the InternetExplorer object
method of creating a new window? Thanks in advance for any help you
can provide.


|