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 () {
Observers();
});
On Sat, Sep 26, 2009 at 5:56 PM, Rick Waldron waldron.r...@gmail.comwrote:
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
- Original Message -
*From:* Russell Keith russell.ke...@aacreditunion.org
*To:* prototype-scriptaculous@googlegroups.com
*Sent:* Wednesday, September 23, 2009 10:27 PM
*Subject:* [Proto-Scripty] Observe new elements
If I am adding elements to a page after the DOM is loaded, how do I add
my existing Element.observe to it?
Russell
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---