unobtrusive javascript notification
notif!er is a jQuery extension / plugin for inline notification
you can use notif!er in any instance you see fit. It can be used to notify user of actions ie: successful edit, twitter update, new comment post... ...you decide!
you can download notif!er in either full or minified version. Simply include it in your header along with the jQuery base
thanks to the following
eugene from fakesite.com
it is easy to implement, and easy to extend
$.notifier.broadcast(
{
ttl:'how easy?',
msg:'this easy!'
}
);
/*
$.notifier usage
--------------------------------
there is no need to instantiate as it extends jQuery base
requires
--------------------
ttl -> string
msg -> string
options
--------------------
skin -> string | array -> [rounded, red (add your own)]
duration -> number millisecond (1000 = 1 sec)
*/
$.notifier.broadcast({ttl:'hello', msg:'this is a message'}); // default
$.notifier.broadcast({ttl:'hello', msg:'this is a message', skin:'rounded'}); // custom skin
$.notifier.broadcast({ttl:'hello', msg:'this is a message', skin:'rounded, red', duration:2500}); // custom skins, set duration
$.notifier.broadcast(
{
ttl:'how easy?',
msg:'this easy!'
}
);
$.notifier.broadcast(
{
ttl:'how easy?',
msg:'this easy!',
skin:'rounded'
}
);
$.notifier.broadcast(
{
ttl:'how easy?',
msg:'this easy!',
skin:'rounded,red',
duration:2500
}
);