Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Pines Notify jquery plugin?

I want to show notification on my website using Pines Notify jQuery plugin but i dont know how to use it. Could someone please provide some example code?

like image 409
Mohammad Adil Avatar asked Dec 01 '22 04:12

Mohammad Adil


2 Answers

This is the only link I have found for documentation: http://sourceforge.net/apps/mediawiki/pines/index.php?title=Pines_Notify

like image 103
campo Avatar answered Dec 10 '22 23:12

campo


This is pretty simple to find out.

  1. Go to the pines notify website: http://pines.sourceforge.net/pnotify/

  2. Click around on the buttons until you find the kind of effect you want to do yourself.

  3. In either Chrome or Firefox w/Firebug, just right click on the button for the effect you want. You'll see an input tag, and you want the code inside the onclick="":


onclick="$.pnotify({
    pnotify_title: 'Regular Notice',
    pnotify_text: 'Check me out! I\'m a notice.'
});"

So if you want to call this at the end of your html doc after you've loaded jquery, you just do something like this:


// call your jquery and pines notify plugin scripts first

$.pnotify({
   pnotify_title: 'Whatever the Title Is',
   pnotify_text: 'This is the text of the notice!'
});

Obviously there are more options, and you can find them by either inspecting the source of the demo page, or by looking at the pines jquery plugin and finding where they define the options.

like image 43
Ken Griffith Avatar answered Dec 11 '22 00:12

Ken Griffith