jQuery Growl Demo

This is a simple demo page for the jQuery Growl Plugin by David Higgins. A timer is set to display a 'notification' every 2.2s, and the configuration on this page displays each message for 4s. This page also utilizes a 'customized' template for jQuery Growl to show how easy it is to customize the look and feel of the Plugin.

The default implementation is not as 'pretty' looking, but it also does not require any images or additional dependencies.

The amount of time that the notice appears is configurable with the '$.growl.settings.displayTimeout' property, future releases may allow each individual notice to have a 'timeout' override.

To see the 'overlay' functionality, simply resize your browser to make the notices appear over this text.

Notifier

Provide a Title and Message, and click 'Send Notice' to see a custom notice.

Title

Message




Your Ad Here

You can change the default 'display' and 'remove' effects by overriding $.growl.settings.noticeDisplay and $.growl.settings.noticeRemove functions. Both take a parameter named 'notice' which is the notice in question, and 'noticeRemove' should also accept a 'callback' and call it as a final process (it is what removes the notice from the DOM -- if you don't handle this with your custom function, simply do "callback();" or pass "callback" to the .animate() function's 'complete' property)

The 'default' image is actually from Daniel Mota's 'Window.Growl', and is located here. You can use any image you want, just place it in the same directory that your page is located in and name it 'growl.jpg' -- or use $.growl.settings.defaultImage to override it.


CHANGELOG

2008-09-04
  • Added the 'noticeDisplay' function so you can override the display functionality
  • Added the 'noticeRemove' function so you can override the remove functionality
  • Added the 'displayTimeout > 0' functionality, so notices can be 'permanent' if so desired.
2008-04-20
  • Added a 'slide up' style effect, by shrinking the notification as it fades out.
2008-04-19
  • Released as 1.0.0-preview, and 1.0.0-b2




Copyright © 2008 David Higgins. All rights reserved.
higginsd@zoulcreations.com
jQuery-1.2.3.js hosted by CacheFile.net
fortune.php script from http://www.aasted.org/quote/
fortune database from stock Mandriva 2008 fortune installation



%title%

%message%