You can use something like my CD3.Behavior lib ( http://github.com/RStankov/controldepo-3-widgets/blob/master/src/behaviors.js )
<code> CD3.Behaviors({'#element:click': yourClickHandler }); // -- or -- CD3.Behaviors('#element', function(){ this.observe('click', yourClickHandler); }); // -- or ... CD3.Behaviors have really large set of possible uses </code> Or ... use Mislav's when() function http://mislav.uniqpath.com/js/when-available-in-prototype/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---