Adding SharePoint Notification after any operation

I love the way SharePoint 2010 notification works and when I say the first time I really thought this going to be one of the cool foundings from MS. Guys please don’t forget to include this feature in your SharePoint apps,so are your geared up then implement using the below sample code.

var strNotificationID, strBlogNotificationID;

function showNofication()
strNotificationID = SP.UI.Notify.addNotification(“Message : Server is down for maintenance “, false);
strBlogNotificationID = SP.UI.Notify.addNotification(“Udai @ :Welcome to My World. “, true);

function removeNofication()
if ( strBlogNotificationID != null)
SP.UI.Notify.removeNotification( strBlogNotificationID;

The message can be built using html element as well ,to provide a better look and feel

Happy SharePoint 2010 Programming


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s