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.