Discussions related to Visual Prolog
User avatar
Tonton Luc
VIP Member
Posts: 204
Joined: 16 Oct 2001 23:01

WebBrowser ActiveX - IE script error about Cookies

Unread post by Tonton Luc »

Hi,

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

Code: Select all

            Null = comDomains::null,             HomePage = "http://www.peugeot.fr/",             browser:navigate(HomePage,Null,Null,Null,Null),
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post 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.
Regards Thomas Linder Puls
PDC
Post Reply