ContentsIndexPreviousNext

Other Properties

Here is a table of the properties with their corresponding ACUCOBOL-GT WEB-BROWSER control properties and descriptions:

Property
ACUCOBOL-GT WEB-BROWSER control property
Description
Busy
BUSY
Indicates whether a download or navigation is still in progress.

LocationName
TITLE
Name of the resource that the WEB-BROWSER control is currently displaying.

LocationURL
VALUE
URL of the resource that the WEB-BROWSER control is currently displaying.

Type
TYPE
Type of the current contained document object.

BUSY, LOCATION-NAME, and TYPE are read-only properties. Setting their values has no effect. As with all ACUCOBOL-GT control properties, you may use the INQUIRE verb to obtain a WEB-BROWSER control's properties. For example, to check whether a WEB-BROWSER control has completed executing the last invoked method:

INQUIRE BROWSER-1 BUSY IN BROWSER-1-BUSY.
 IF BROWSER-1-BUSY = 1
  ...
 END-IF

To get the URL that the browser is currently displaying:

INQUIRE BROWSER-1 VALUE IN URL-1.

or if you have defined the WEB-BROWSER control with value URL-1 in a screen section item, the LocationURL will automatically be moved to URL-1 when an event or exception occurs or the ACCEPT terminates.

EventsThe Web-Browser control generates the following events:

MSG-WB-BEFORE-NAVIGATE
MSG-WB-DOWNLOAD-BEGIN
MSG-WB-DOWNLOAD-COMPLETE
MSG-WB-NAVIGATE-COMPLETE
MSG-WB-PROGRESS-CHANGE
MSG-WB-STATUS-TEXT-CHANGE
MSG-WB-TITLE-CHANGE