Re: How to avoid warning after "MyObject=new ActiveXObject(...)"
From: Marcelo J. Birnbach (mbirnbac@online.microsoft.com)
Date: 02/13/03
- Next message: Michel Gallant (MVP): "Re: C# .NET = Handing out your private source code???"
- Previous message: Marcelo J. Birnbach: "Re: Database Security - Where to store?"
- In reply to: Nikolay Seksenov: "How to avoid warning after "MyObject=new ActiveXObject(...)""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Marcelo J. Birnbach" <mbirnbac@online.microsoft.com> Date: Thu, 13 Feb 2003 14:37:45 -0800
You can embed the control in your page and it's going to be created without
the need of calling new ActiveXObject by adding this html code:
<OBJECT id=mycontrol classid="control1.dll#Control1">
You DON'T even need to register the control as an ActiveX.
Then, inside your page you can reference at the control by its id:
For example:
<script language="JavaScript">
function Test()
{
var res = mycontrol.Test();
}
</script>
Let me know if you have any question.
Thanks,
Marcelo
"Nikolay Seksenov" <seksenov@hotmail.com> wrote in message
news:0c4901c2d1f4$ab7bd500$a601280a@phx.gbl...
> I have created a vb.net dll which I call from one of our
> intranet html pages. To instantiate this dll in html page
> I am using the following javascript statement:
> "MyObject=new ActiveXObject("MyDll.MyClass");"
> Execution of this line causes the warning: "An ActiveX
> control on this page might be unsafe to interact with
> other parts of the page. Do you want to allow this
> interaction?". After answering "Yes" everything works
> fine. Is there any way to avoid this warning?
> I have read some articles about safe and signed code but
> still can't find the answer.
>
- Next message: Michel Gallant (MVP): "Re: C# .NET = Handing out your private source code???"
- Previous message: Marcelo J. Birnbach: "Re: Database Security - Where to store?"
- In reply to: Nikolay Seksenov: "How to avoid warning after "MyObject=new ActiveXObject(...)""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|