|
|
|
Re: How 2 suppress Certificate warning dialog while using Browser ActiveX [message #437864 is a reply to message #437419] |
Fri, 11 June 2004 11:21  |
Eclipse User |
|
|
|
Hello Kamlesh,
> I am using win32 API ActiveX control
> (org.eclipse.swt.ole.win32.OleControlSite) to insert a browser control
> (Shell.Explorer)in a View. It works fine with "http" request but gives an
> untrusted-certificate warning dialog with "https". Is there any way to
> supress this warning dialog.
You need value silent property of Internet Explorer to "true".
Like this :
...
static OleAutomation webBrowser;
...
setSilent(true);
...
private void setSilent(boolean p_Valeur)
{
int[] ids2 = webBrowser.getIDsOfNames(new String[] {"silent"});
if (ids2 != null)
{
webBrowser.setProperty(ids2[0],new Variant(p_Valeur));
}
}
...
Have fun,
Bruno
|
|
|
Powered by
FUDForum. Page generated in 0.06109 seconds