jQuery Event Recording and Growl

17 Nov 2009 | By Alex Young | Tags jquery growl mac

TJ from Vision Media sent us these great libraries:

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__.


blog comments powered by Disqus