webmessage
Displays a message in a dialog box in the browser.
webmessage/info
| /warning
| /error
Message {, PropertyList}
Example: webmessage/info vMessage, vPropList
Qualifiers
Qualifier | Description |
---|---|
/info/warning/error | Specify the message severity; the dialog box displays a matching icon. |
Parameters
Parameter | Data Type | Description |
---|---|---|
Message | String | Message to be displayed. The interpretation of the message depends on the switch. |
PropertyList | String | Associative list of one or more of the
following property names, controlling the size and content of the dialog.
|
Return Values
None
Use
Use in Dynamic Server Page components.
Description
webmessage produces an asynchronous message box and does not stop JavaScript execution. Calling this function three times in a row causes three message boxes to appear in the browser.
The dimensions of the message box can be
controlled by xsize
and ysize
in the
PropertyList. If they are not defined, the message box is sized to fit the data,
with the minimum dimension of approximately 400 pixels. If the text is too long to fit, the message
box wraps the text and displays a scroll bar.
Note: For predictable behavior, it is recommended that
you define at least the xsize
of the message box.
The appearance of the message dialog is determined the uwindow.css stylesheet. You can change the look and feel of the dialog by editing this file.
The message severity, as indicated by the switch used, is indicated by the following icons.
Icon | Severity |
---|---|
|
Info |
|
Warning |
|
Error |
Version |
Change |
---|---|
9.4.01 |
Introduced |