dhtmlxMessage is a helper that lets you create different text messages.
Included files:
To use dhtmlxMessage you need to include one
js file:
message.js
<script type="text/javascript" src="../message.js"></script>
Attributes:
id - the instance's ID
text - the text of a message.
lifetime - the time after passing which a message disappears (in milliseconds).
type - css class for a message box.
While creating css class, please, use 'important' keyword to ensure correct processing.
Properties:
The helper can be used in 2 forms:
Short form
(contains just text of a message - implicit usage of the parameter 'text'. The other parameters take default values)
Full form
(contains several available parameters. Non-specified parameters take default values)
dhtmlx.message.defPosition="top";
dhtmlx.message({
text:"An error has occured.<br /> Please, see the log file!",
lifetime:1000,
type:"error" // 'error' - css class
});