The JavaScript blog.


jquery growl mac

jQuery Event Recording and Growl

Posted on .

TJ from Vision Media sent us these great

There's a demo
of EventPlayback. The API is very simple:

$.recordEvents({ duration: 5000 }, function() {
  $.playbackEvents(this, { interval : 25 })

It generates a fair amount of data, so be careful how you use it.

The Growl library, js-growl
works with Rhino and basically shells out to growlnotify.
The API is nicer than shelling out yourself:

Growl.notify('5 new emails', { title: 'Email Client', image: 'Safari', sticky: true })

The same author has also written this minimal OO library:
js-oo. It's based on the classes in Prototype, so you get inheritance with the previous init
method saved in super.