[Proto-Scripty] Re: Event.observe best practice

2008-09-08 Thread BrentNicholas
Ok, back at work... long weekend. So thanks to Matt and elduderino for their replies. I ended up using Matt's sugestion simply becuase it was easy to understand. I was able to use a few parts of elduderino's to get the id. I'll be digging into elduderino's solution more later to gain a better u

[Proto-Scripty] Re: Event.observe best practice

2008-09-08 Thread Matt Petrovic
every event handler gets the event that calls it as an argument. for example, function handler(event) { do something; } element.observe('click', handler); whenever you click that element, your handler will have an Event object, named event in this case. The Event object has a number of properti

[Proto-Scripty] Re: Event.observe best practice

2008-09-06 Thread elduderino
Yeah agreedso if they're inserted on completion of an xhr request then you can just use the callback of this and run my code (without the dom:loaded)i don't think you need the inline event handlers here On Sep 5, 6:10 pm, Matt Foster <[EMAIL PROTECTED]> wrote: > Problem with that idea Eld