Function zenarioA.showMessage()

In JavaScript:
zenarioA.showMessage(
resp, buttonsHTML, messageType, modal, htmlEscapeMessage, addCancel, cancelPhrase, onOkay
)

Description

This displays a CMS-styled message box in admin mode.

Parameters

message

A message to display. You can enter a plain text message, or html. You can prefix this message with any of the controls documented on the Customising Message Boxes in Admin Mode page.

buttonsHTML

Some html for some buttons at the bottom of the box. If set to undefined or true, a simple "OK" button will appear.

messageType

You can enter "error", "success", "warning" or "question" to set the style of the message.

modal

If this is set to true, the admin won't be able to close the box by clicking in the background.

htmlEscapeMessage

If you entered a plain text message into message, you should set this to true.