[Proto-Scripty] Re: Observe new elements

2009-09-26 Thread Rick Waldron
var _observers On Thu, Sep 24, 2009 at 5:41 AM, Alex McAuley webmas...@thecarmarketplace.com wrote: You need to stopObserving the old ones relative to your element (cleans up the observers) and add a new observer as normal HTH Alex Mcauley http://www.thevacancymarket.com -

[Proto-Scripty] Re: Observe new elements

2009-09-26 Thread Rick Waldron
Whoops! I hit shift or control return and well... sent that too early. Anyway, I always do this... var Observers = function () { // your observers go in here... }; Ajax.Responders.register({ onComplete: function () { Observers(); } }); document.observe('dom:loaded', function ()