Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
ActiveX warning box - how to inhibit?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
EdB  
View profile  
 More options Nov 19 2009, 2:10 pm
Newsgroups: microsoft.public.scripting.vbscript
From: EdB <E...@discussions.microsoft.com>
Date: Thu, 19 Nov 2009 06:10:01 -0800
Local: Thurs, Nov 19 2009 2:10 pm
Subject: ActiveX warning box - how to inhibit?
I need to do

Set vIExp = CreateObject("InternetExplorer.Application")

from my VBScript in a web page. That is, I have one IE active and accepting
input, and want to create another one pointing to a URL that is determined by
some form input values from the first IE.

It works fine, but I always get this "ActiveX control on this page might be
unsafe to interact etc etc etc Do you want to continue". How can I prevent
this box and just bring up the new page? I've played around with some of the
security settings in the IE properties page, but I can't make it go away.
Can anybody help here?

Thanks,
Ed


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mayayana  
View profile  
 More options Nov 19 2009, 3:45 pm
Newsgroups: microsoft.public.scripting.vbscript
From: "mayayana" <mayaXXy...@rcXXn.com>
Date: Thu, 19 Nov 2009 10:45:43 -0500
Local: Thurs, Nov 19 2009 3:45 pm
Subject: Re: ActiveX warning box - how to inhibit?
  Presumably this is local? You can't change settings
for visitors to a website. And if it's local then can't
you use an HTA?

    If it's local and you want to make IE safe, you can
set these values in the Registry:

Every object has a ProgID in HKCR. In this case it's
InternetExplorer.Application. Under that key look for
the CLSID key. The value in there points to a key under
HKCR\CLSID.

 So you find HKCR\InternetExplorer.Application\CLSID\[xxx]
Then open HKCR\CLSID\[xxx]
Under that key, create a subkey, if it doesn't a;ready exist,
named Implemented Categories. Under that key create two
more subkeys with the following names:

{7DD95802-9882-11CF-9FA9-00AA006C42C4}
{7DD95801-9882-11CF-9FA9-00AA006C42C4}

So it's like:
HKCR\CLSID\[xxx]\Implemented
Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}

where [xxx] is the CLSID of the object.

  Those settings mark an object as safe for scripting and safe
for initialization. The settings correspond to the IE security
settings related to "unsafe ActiveX".

   There are obvious risks to setting an object safe if it was
not considered to be safe by it's author.  Hopefully you're not
going to use IE as your online browser.

--
--

EdB <E...@discussions.microsoft.com> wrote in message

news:A17CD975-8CA3-4F9F-BA99-CCB05354AD9C@microsoft.com...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Lavedas  
View profile  
 More options Nov 19 2009, 3:50 pm
Newsgroups: microsoft.public.scripting.vbscript
From: Tom Lavedas <tglba...@cox.net>
Date: Thu, 19 Nov 2009 07:50:37 -0800 (PST)
Local: Thurs, Nov 19 2009 3:50 pm
Subject: Re: ActiveX warning box - how to inhibit?
On Nov 19, 9:10 am, EdB <E...@discussions.microsoft.com> wrote:

Why are you doing it that way?  That is nothing but problems, as
you've found.  The user must change there security settings too low
for this to be useful, is a terrible idea and is outside of your
control.  Why are you not using window.open?
_____________________
Tom Lavedas

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
EdB  
View profile  
 More options Nov 19 2009, 7:31 pm
Newsgroups: microsoft.public.scripting.vbscript
From: EdB <E...@discussions.microsoft.com>
Date: Thu, 19 Nov 2009 11:31:01 -0800
Local: Thurs, Nov 19 2009 7:31 pm
Subject: Re: ActiveX warning box - how to inhibit?

I am doing it that way because I would like to reuse the newly-opened window
to navigate to other URLs.  I do not know of a way to do this with
window.open.   I want to avoid having lots of IE windows all over the
desktop, if possible.

Having an instance of IE available allows me to call navigate(url).  This is
part of an activity that could go on for many hours, and the users get cranky
when they have to keep closing/collapsing/moving/etc windows around.

If there is a way to use window.open() and then make it re-navigate based on
user input then I would certainly be open to it.  This is stuff I do not know
much about.

Ed

Ed


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Lavedas  
View profile  
 More options Nov 19 2009, 8:18 pm
Newsgroups: microsoft.public.scripting.vbscript
From: Tom Lavedas <tglba...@cox.net>
Date: Thu, 19 Nov 2009 12:18:18 -0800 (PST)
Local: Thurs, Nov 19 2009 8:18 pm
Subject: Re: ActiveX warning box - how to inhibit?
On Nov 19, 2:31 pm, EdB <E...@discussions.microsoft.com> wrote:

Here is a little example that does that ...

<html>
<script language=vbs>
dim g_oWdw

sub window_onload
  set g_oWdw = window.open("about:blank", "Test",
                    "resizable=yes,location=no,menubar=no,toolbar=no")
end sub

sub btn1_onclick
  g_oWdw.location = "http://msdn.microsoft.com/en-us/library/
ms536651%28VS.85%29.aspx"
end sub
</script>
<body>
Testing <br>
<input type=button name=btn1 value=GO>
</body>
</html>

I didn't bother to size and position the windows.
_____________________
Tom Lavedas


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
EdB  
View profile  
 More options Nov 19 2009, 9:01 pm
Newsgroups: microsoft.public.scripting.vbscript
From: EdB <E...@discussions.microsoft.com>
Date: Thu, 19 Nov 2009 13:01:03 -0800
Local: Thurs, Nov 19 2009 9:01 pm
Subject: Re: ActiveX warning box - how to inhibit?

Jeez, I guess I am just trying to make things too hard on myself.

I think this will do fine.  Thanks!

Ed


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google