hoodwink.d enhanced

Fri Oct 7

The pen is the tongue of the mind.

Miguel de Cervantes

Extract shared logic with global Ajax callbacks in Prototype 1.4.0_pre11

Ajax.Responders.register({
  onCreate: function() {
    if (Ajax.activeRequestCount > 0)
      Element.show('spinner');
  },
  onComplete: function() {
    if (Ajax.activeRequestCount == 0)
      Element.hide('spinner');
  }
});

What’s the rush John Henry?


John Henry is a comprehensive framework and web-based IDE for rapidly developing Ruby on Rails apps.