s@rdalya

 

MessagePane

Page history last edited by vozcelik 3 yrs ago


 

MessagePane

(extends DynamicLayer)

Object summary

 

Creates a DHTML Message pane which is activated when a FormField has an error. MessagePane both impements an actuator design pattern and an observer design pattern.

 

For the actuator case:

If its show method is called with blnHasError true, then the associated FormField's setError method will be called.

 

As per the observer part:

If its clear method is called, it calls the clearError metod of all its bound FormFields.

 

MessagePane(elm,strNormalClass,strErrorClass)

 

parameters

 

elm - The DHTML index or object reference to the content layer.

strNormalClass - className if there is no error.

strErrorClass - className to change when there is an error.

 

comments

Better examine the example page to have a better understanding. The object requires some CSS and some JS to be set to be able to work cross-browser.


[MessagePane.bindField(/*varargin*/)

 

parameters

varargin - Variable number of arguments. Each argument must be a FormField instance.

 

commnets

 

Binds the given FormFields to the MessagePane.


MessagePane.clear()

 

comments

 

Clears the contents of the MessagePane and calls clearError method of all its bound FormFields to clear them as well.


MessagePane.show(strMessage,objErrorField,blnHasError)

 

parameters

 

strMessage - The message to show.

objErrorField - The FormField instance to associate.

blnHasError - true if there is an error. false otherwise.


See Also

 

ModalDialog


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.