I made a little JavaScript notification system, somewhat inspired by webOS and also by the type of notifications you see on Gmail.

jxNotify code

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.

jxNotify notifyPre

jxNotify notifyPostError


// optional argument = icon, recommended size of 18x18

Notify of operation in progress (notifyPre)

jxNotify.notifyPre('doing stuff...');

Notify of operation completed (notifyPost)


Notify of operation failure (notifyPostError)

jxNotify.notifyPostError('something bad happened!');


Leave a Reply