Page 1 of 1

WebBrowser ActiveX - IE script error about Cookies

Posted: 3 Oct 2013 12:18
by Tonton Luc

The following code generate an IE script error about "extpgt_setCookie".
Any way to solve this problem ?

Code: Select all

            Null = comDomains::null,             HomePage = "",             browser:navigate(HomePage,Null,Null,Null,Null),

Posted: 3 Oct 2013 16:18
by Thomas Linder Puls
I do not know why this page gives a script error when running in a webBrowser control.

Setting the webBrowser control in silent mode will prevent the dialog, but the page still doesn't display correctly, because the script error still exist.

You cannot change to silent mode before the control is shown, so either you should do it in an "onShow" handler, or like here in a postAction:

Code: Select all

clauses     new(Parent) :-         formWindow::new(Parent),         generatedInitialize(),         addMenuItemListener(resourceIdentifiers::idr_Navigation_Back, onIdrNavigationBack),         addMenuItemListener(resourceIdentifiers::idr_Navigation_Forward, onIdrNavigationForward),         addMenuItemListener(resourceIdentifiers::idr_Navigation_Home, onIdrNavigationHome),         webBrowserControl_ctl:statusTextChangeEvent:addListener(onStatusTextChange),         webBrowserControl_ctl:html := main::html,         postAction( {:-             webBrowserControl_ctl:silent := true         } ).
As mentioned that will however only remove the first level symptom.