Hi All, Is prototype implement the event on element available like yui event component implemented?It is usefull,IMHO. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I''m sorry, would you rephrase your question? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Jacky, No, Prototype does not have a corresponding implementation. However, Prototype 1.6 does trigger a ''dom:loaded'' event which covers most of what YUI''s onavailable is about (triggering callbacks as soon as the DOM is loaded) while being a lot easier on the CPU. If your were using some of the other, more advanced features of onavailable (namely, querying the DOM at regular intervals to see if an identified element has been added to it), I suggest you either use event delegation or implement a similar functionality yourself (which I''d love to see, btw). There a no current plans to add the later functionality to Prototype, but the custom event system we just implemented is opening new doors in that area, and might very well provide more elegant solutions to this issue. So stay tuned. Regards, Tobie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
thanks for your reply. 2007/10/21, Tobie Langel <tobie.langel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > > Hi Jacky, > > No, Prototype does not have a corresponding implementation. > > However, Prototype 1.6 does trigger a ''dom:loaded'' event which covers > most of what YUI''s onavailable is about (triggering callbacks as soon > as the DOM is loaded) while being a lot easier on the CPU. > > If your were using some of the other, more advanced features of > onavailable (namely, querying the DOM at regular intervals to see if > an identified element has been added to it), I suggest you either use > event delegation or implement a similar functionality yourself (which > I''d love to see, btw). > > There a no current plans to add the later functionality to Prototype, > but the custom event system we just implemented is opening new doors > in that area, and might very well provide more elegant solutions to > this issue. So stay tuned. > > Regards, > > Tobie > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---