The JSAction messagebox is a component for display of information and error. This solution is a much more elegant form to inform a user as with an JavaScript alert.
Beside the JSAction standard messages also own messages can be displayed in the box. The following three types are available:
You define the message box simply with the following line in the HTML code. JSAction recognizes the box automatically by the id and creates an collapsable and scollable message box.
<div id="messages" class="hide"></div>
The layout of the message box will be done global with CSS selectors. Standard the info messages are green, warnings are orange and errors are red displayed.
For the correct presentation the followeing must be defined:
*{margin:0; padding:0}
.hide{display:none}
The message box adjust its layout automatically depending to the amount of messages. If there are many messages a fold out function and if neccessary a scrollbar will be displayed.
Author: Johannes HammoudComments Date: 05.12.2009