views:

192

answers:

2

Hi

I am looking at pines notify(http://pines.sourceforge.net/pnotify/) and it looks good but it seems to have little actual documentation so I am wondering is there anything more established and worked on out there?

Like I don't want to spend time trying to figure out how to use pines and then find out it is missing some feature that I needed a few months later that I needed to change to a different plugin.

This happened to me with tablesorter 2.0 I was using it then I needed the filtering but theirs kinda sucked so I found datatables what had such a bigger api and developed more.

So I am wondering if there is something like datatables(in terms of development and features) just for notifications instead.

Edit

So I am looking at jgrowl and kinda confused with how to use the theme roller with it.

So I took once of the example files and stripped it down with everything I thought was junk.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml" debug="true">
    <head>
        <title>jGrowl meet Twitter</title>
        <link rel="stylesheet" href="../jquery.jgrowl.css" type="text/css"/>
        <link type="text/css" href="css/le-frog/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
        <script type="text/javascript">
            $(function(){
                $('.ui-state-default').hover(
                    function(){$(this).addClass('ui-state-hover');},
                    function(){$(this).removeClass('ui-state-hover');}
                )
                .mousedown(function(){$(this).addClass('ui-state-active');})
                .mouseup(function(){$(this).removeClass('ui-state-active');})
                .mouseout(function(){$(this).removeClass('ui-state-active');});
            });
        </script>

        <script type="text/javascript" src="jquery-ui-1.7.2.custom.min.js"></script>
        <script type="text/javascript" src="../jquery-1.3.2.js"></script>
        <script type="text/javascript" src="../jquery.jgrowl.js"></script>
        <script type="text/javascript">

            $(document).ready(function(){
                // This value can be true, false or a function to be used as a callback when the closer is clciked
                $.jGrowl.defaults.closer = function() {
                    console.log("Closing everything!", this);
                };

                $.jGrowl("Sticky notification with a header", 
                    { 
                        header: 'A Header', 
                        sticky: true,
                    });
            });

        </script>
    </head>
    <body>
    <div id="trdevtool_contain" class="ui-widget ui-widget-content ui-corner-all">
        <div class="ui-widget-header ui-corner-top">
            <h1>jQuery UI ThemeRoller <span>Developer Tool</span></h1>
        </div>
    </div>

    </body>
</html>

I don't understand what this is for

    <script type="text/javascript">
        $(function(){
            $('.ui-state-default').hover(
                function(){$(this).addClass('ui-state-hover');},
                function(){$(this).removeClass('ui-state-hover');}
            )
            .mousedown(function(){$(this).addClass('ui-state-active');})
            .mouseup(function(){$(this).removeClass('ui-state-active');})
            .mouseout(function(){$(this).removeClass('ui-state-active');});
        });
    </script>

It seems to have nothing to do with applying the themes. I took it away and the theme was still applied. Also if you look at my jgrow

$.jGrowl("Sticky notification with a header", 
    { 
        header: 'A Header', 
        sticky: true,
    });

I make no mention of theme yet it still some how used the theme. Why is it taking the theme?

+1  A: 

There are bunches of these out there, I'd checkout the jQuery plugins site, specifically the plugins classified under the notification category :)

Here are just a few:

Nick Craver
Ya I see a bunch I am trying to figure out which one is the most used and most in development.
chobo2
@chobo2 -They all have slightly different styles/flavors, pick which best fits your site and required feature set I'd say (e.g. do you need queuing?), they're all pretty lightweight
Nick Craver
A: 

Personally I use jGrowl. But here are a few others.

Edit: In response to the comment below, here's the jGrowl site. What does it do better? It's easy to use, and it works well. The others can achieve the same thing, but my experience is the same as Funka's: tried it, it worked, it was easy, done.

Ken Redler
Ya I saw that but I can't find there home page. What does it do better?
chobo2
I used jGrowl recently on a project; I didn't have much time to look around and it was the first one I found, but it was so easy to setup and quick to get running that I had no need to look further.
Funka
Hmm I am looking at jGrowl but I am wondering(and this might go for all of them). What is the best way to populate them with ajax? Like I am going to be send message from the server and want those to popup in the notification. How best to send it and then how to populate the notifications?
chobo2
Can you also maybe explain how I use the theme roller with this. See my edit.
chobo2
Just call $.jGrowl('your_message') in the success callback of your $.ajax() call.
Ken Redler
Hmm. But I mean I am getting a list of stuff back so just a for loop looping around that jGrowl call?
chobo2
Yes, something like that -- assuming you want a separate alert box for each item in that list.
Ken Redler