|
-
Apr 25th, 2008, 04:13 AM
#1
Thread Starter
New Member
[RESOLVED] Get rid of security question when interacting with ActiveX in WebBrowser control?
Hi.
I'm developing an application in VB6. In that application, we're using the WebBrowser control based on Internet Explorer. That WebBrowser control loads a local web page containing an ActiveX object.
Now, when i send parameters to the object using the <param> tag, or when i call the ActiveX object using javascript (as described below) i get a security question from Internet Explorer asking me if i want to allow interaction between the ActiveX control and the rest of the web page even though it might be a security risk.
I want to get rid of that security question. How can that be done?
HTML Code:
<object id="myActiveXControl" classid="[...]" codebase="[...]">
<param name="[...]" value="[...]">
myControl
</object>
<script>
document.getElementById('myActiveXControl').someFunction("Value");
</script>
Our application will be installed on our customers computers, hence we have access to the registry and such. Can it maybe be solved by installing certificates and signing the control?
Thanks!
Last edited by impen; Apr 25th, 2008 at 05:04 AM.
-
Apr 25th, 2008, 07:32 AM
#2
Thread Starter
New Member
Re: Get rid of security question when interacting with ActiveX in WebBrowser control?
I finally found my solution. I'll post it here in case someone else might need it.
The solution is that the ActiveX control must implement IObjectSafety. How that is done is described here: http://support.microsoft.com/kb/182598 Note that after step 4 you must register your new .tlb file. That's done like this:
Code:
regtlib <Full path of .tlb file>
-
May 8th, 2008, 10:57 PM
#3
Re: [RESOLVED] Get rid of security question when interacting with ActiveX in WebBrowser control?
lol!...
MORE INFORMATION
WARNING: One or more of the following functions are discussed in this article: VarPtr, VarPtrArray, VarPtrStringArray, StrPtr, and ObjPtr. These functions are not supported by Microsoft Technical Support. They are not documented in the Visual Basic documentation and are provided in this Knowledge Base article "as is."
Great post tho...
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|