> In my tests I've attached the exection of the script with an event > listener. But I still have some problems when the event listeners are > attached before the js objects are loaded. Event listeners need to be attached from the load event. Eg. addInitEvent( function(){ addEvent($('foo'),'click',function(){ alert('bar') }); }); This makes sure that the element with ID 'foo' is already loaded before an click handler is attached to it. Andi -- http://www.splitbrain.org -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist