jQuery Notification Menu

Notification Menu

A jQuery plugin to add notification bubbles and a notification list to any menu.

Based on the PSD created by Orman Clark

notification-center

Usage

var notifications = new $.ttwNotificationMenu({
      colors:['#f56c7e', '#fec151', '#7ad2f4']
}); 

//Add bubbles to a menu 
notifications.initMenu({ 
      someCategory:'#menuItemSelector'
}); 

//create a notification notifications.createNotification('Sample Notification'); 

//delete a notification 
var notification = notifications.creatNotification('some notification'); 
notifications.deleteNotifiction(notification); 

//get the notifications in a category 
var notificationsInSomeCategory = getNotifications('someCategory', 'unread');

13 Comments

Got something to say? Feel free, I want to hear from you! Leave a Comment

  1. Jack Whiting says:

    I really like this might try integrate it somehow in one of my design mockups but a quick question/notice.

    When the notifications go over a certain amount (overflows screen) the popup moved above the button, so nothing could be seen past top of the screen.

  2. Helbert Miranda says:

    What Jack Whiting said happened with me also after adding about fifty messages. Suggestions to correct this?

  3. Shojeesh says:

    useful………..thanks.

  4. Wouldn’t it be nice if the pop up appears even if i click on the button?

    On Chrome 14.0.835.163 beta-m , the pop-up appears only if i click on the colored bubble.

    • Saleem says: (Author)

      Yes, that is how it is supposed to behave. If you want the list to pop up when you click the menu item, you will need to modify the code. Just add another event handler…

  5. todd says:

    would love to implement this into my web app using pusher.com’s api to trigger the notifications… but how?

    • Saleem says: (Author)

      Pusher looks interesting, but unfortunately I have never used it so I can’t give you any pointers.

  6. Matias says:

    Really nice! Congratulations

  7. Harvey says:

    Can this script be used to notify the user when a new record in the database is inserted? For example, a user has a new message in the database and this script will send an automatic popup to the user’s screen? Thanks!

  8. Steve says:

    This plugin looks interesting, however I can’t figure out how to properly use the callbacks. I want to have a callback executed when I click on the notification text and another when I click the notification close button. For the first one I’m using notificationClickCallback and for closing markReadCallback. This seems to work, but everytime I click the close button, the click callback is also executed, so I have two events triggered which is not what I want. Is there anyway to trigger only the markReadCallback or am I missing something?

    Thanks.

Leave a Comment

Let us know your thoughts on this post but remember to place nicely folks!