Asynchronous alert()

Last Modified: 28/08/2007 Download JS Source

An asynchronous notifications function replacing the native alert()

A test for the fading alert() notification, a very useful debugging tool I normally use to avoid using standards alert().
Sometime you have to kill the browser because just because of a wrong alert() placement while developing/debugging !!!
By including this script and by calling the init() method of the Notifier Object you overwrite the standard alert() function.
Should you need to call the original alert(), it's old reference is saved as __alert(), try it out.

Once instantiated the Notifier Object exposes the notify() method, which can be called spearately
from other functions, like Ajax requests, events and more generally any loading transaction.