Avishkar Autar · Apr 8 2011 · Web Technologies
The central idea was to have an elegant system that could sensibly display the progress of AJAX operations; meaning notifications stays up while the operation is being done (i.e. while sending request and waiting for a reply from the server), then a success or failure message is posted upon completion, which fades away automatically.
While designed for AJAX calls, this could certainly be used in other cases as well.
// optional argument = icon, recommended size of 18x18
Notify of operation in progress (notifyPre)
Notify of operation completed (notifyPost)
Notify of operation failure (notifyPostError)
jxNotify.notifyPostError('something bad happened!');