/*============== addNotification function =============
Adds a warning message on the top of the entity form using
the same visual style as Microsoft CRM
Params: message to be shown to the user
=======================================================*/
addNotification = function(message) {
var notificationHTML = '<DIV class="Notification"><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD vAlign="top"><IMG class="ms-crm-Lookup-Item" alt="" src="/_imgs/error/notif_icn_crit16.png" /></TD><TD><SPAN>' + message + '</SPAN></TD></TR></TBODY></TABLE></DIV>';
var notificationsArea = document.getElementById('Notifications');
if (notificationsArea == null) return;
notificationsArea.innerHTML += notificationHTML;
notificationsArea.style.display = 'block';
}
/*============= END addNotification function ===========*/
//Example of utilizations
addNotification('Some warning message that you want to show to the user ');
Zoeken in deze blog
dinsdag 7 september 2010
Custom Warning
Abonneren op:
Reacties posten (Atom)
Geen opmerkingen:
Een reactie posten