The best place to find jQuery plugins !
Welcome on myjqueryplugins,
the best jquery plugins library !
Connect it with GitHub and create your plugin Homepage.
Make known your plugin to the community or link it to your own website !
Plugin submitted by alpixel
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.
1 2 3 4 5 6 7 |
<!-- include CSS & JS files --> <!-- CSS file --> <link rel="stylesheet" type="text/css" href="jNotify.jquery.css" media="screen" /> <!-- jQuery files --> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jNotify.jquery.js"></script> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<script type="text/javascript"> $(document).ready(function(){ // simple Notify box call jNotify(); // simple Error box call jError(); // simple Success box call jSuccess(); // more complex Notify box call jNotify( 'Here the message !!<br />You can write HTML code, <strong>bold</strong>,...', { autoHide : true, // added in v2.0 TimeShown : 3000, HorizontalPosition : 'center', onCompleted : function(){ // added in v2.0 alert('jNofity is completed !'); } } ); // close jNotify }); // close document.ready </script> |
An information box. jNotify();
An error box. jError();
A success box. jSuccess();
Comments
Thanks for this great plugin !
Easy to implement.
I have a question regarding the ShowTimeEffect : it seems that it doesn't have any effect for me. Is there something to do to enable it ?
Thanks
Hi Kirikou,
Thanks for your message :)
The option 'ShowTimeEffect' is the time during the notify box appears.. It don't work your you ? If you disabled it, the box will not appear.
Try to test with a very long time (more than 5 seconds), and try with a very short time (less than 1 second) to see if it changes something.
Regards,
Maiki
hi i set autoHide : false for error box so that the user can still see what is missing in the entry. but if the user didn't click on the error message box it won't disappear and how to clear that. thanks.
Hi,
If you want the user have the time to read what is missing, you can set the option 'TimeShown' to 4 or 5 seconds, 'clickOverlay' to 'true' and 'autoHide' to 'false'.
Regards,
Hi Maiki,
I mod a little bit of ur code by adding class="msgbox" and remove the msgbox div at the start of every calls. so it make sure showing only one notification at a time. at least it fits to my requirement.
better to support customize icon and color . we can call it something like this :
jNotify('my message',{color:#ffddcc,icon:eye});
but i don't know how to implements it . i think it 's easy for you guys to implement such functionality .
JNotify sure preserves balance in all things.
no deposit forex bonus
I've tried to add a function to manually close any notifications that are open. Even though adding this, it does not work. Any tips?
(added to the bottom, right under jNotify)
jClose = function() {
if($.jNotify._isReadable('jClose'))
$.jNotify._close();
};
Awsome plugin, very nice job.
Thanks you very much.
Easy to place, easy to skin, just what i was looking for.
jLoading = function(msg,options) {
if($.jNotify._isReadable('jLoading'))
$.jNotify.init(msg,options,'jLoading');
};
I think a loading box is valuable for you plugin!
/****************/
/** jLoading CSS **/
/****************/
#jLoading {
position:absolute;
background:#d8e6fc url('loading.gif') no-repeat 15px center;
color:#8a1f11;
border:1px solid #a7c3f0;
padding:10px;
padding-left:50px;
margin:50px;
z-index:9999;
-moz-border-radius : 5px;
border-radius:5px;
-webkit-border-radius:5px;
}
#jLoading a {color:#8a1f11 !important;text-decoration:none;}
Pretty! This was an extremely wonderful post. Thank you for providing these details.
Add new comment