| View previous topic :: View next topic |
| Author |
Message |
impen
Joined: 25 Apr 2008 Posts: 3
|
Posted: Fri Apr 25, 2008 10:41 am Post subject: 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?
| 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! |
|
| Back to top |
|
 |
|
|
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 563 Location: Cebu City Philippines
|
Posted: Fri Apr 25, 2008 11:22 am Post subject: Re: Interacting with ActiveX in WebBrowser control? |
|
|
You should'nt be worying that much
...This only happens locally and not when your file is uploaded on the server already
...But still if you hate to see the yellow-bar annoyances, add this script just right above you html tag:
| Code: |
<!-- saved from url=(0014)about:internet -->
|
This link might help relieve your grief too
http://msdn2.microsoft.com/en-us/library/ms537628.aspx |
|
| Back to top |
|
 |
impen
Joined: 25 Apr 2008 Posts: 3
|
Posted: Fri Apr 25, 2008 12:53 pm Post subject: Re: Interacting with ActiveX in WebBrowser control? |
|
|
Thanks for your reply.
The thing is, though, that the file will never be uploaded on any server but it'll always be run locally in our application using a WebBrowser control. Sadly your solution didn't work for me locally either. |
|
| Back to top |
|
 |
impen
Joined: 25 Apr 2008 Posts: 3
|
Posted: Fri Apr 25, 2008 1:33 pm Post subject: Re: 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> |
|
|
| Back to top |
|
 |
|