2007-03-23

JSLog

"..a lightweight, self-contained logging panel which takes the place of alert() boxes for your AJAX and DHTML applications."

2007-03-12

Javascipt: cross-browser event registration

var mozilla =document.getElementById && !document.all;
var ie =document.all;

function addevent( id, event, callback)
{
  if( ie)
      document.getElementById( id).attachEvent( 'on' +event, callback);
  else if( mozilla)
      document.getElementById( id).addEventListener( event, callback, true);
  else
    {
      // XXX???
    }
}