Blog Read

jQuery jNotify

jNotify is a jQuery plugin to send notifications to your users with a single line code.

jNotify can display information boxes in just one line of code. Three kind of boxes are allowed : information, success and failure. The whole box is entirely skinnable with css. For example, you could use it for a mail being successfully sent or a validation error of a form.

This a great easy to use plugin to notify your users about events within your app. For instance, I used this plugin to my users know if an AJAX request had an error or if it was successful.

 

Here is an example of creating an error and success message. 

view plain print about
1$(function()
2            {
3                
4                $('#show_error').click(
5                function(){
6                    jError('I am sorry, something did not go right!',{HorizontalPosition : 'right', VerticalPosition : 'top'});
7                }
8                );
9                
10
11         $('#show_success').click(
12                function(){
13                    jSuccess('Success user has been save!',{HorizontalPosition : 'right', VerticalPosition : 'top'});
14                }
15                );
16            }
17        );

Demo

As you can see it is quite simple to use.

blog comments powered by Disqus