Hi group, I would like to know if there''s a way to apply a ''toString'' method to an Element. Or is there librairies doing this on HTMLElement. Regards, Karl --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
element.innerHTML will give you everything inside element.tagName will give you the tag name of the element if you dont know it On Fri, Apr 18, 2008 at 9:38 AM, Karl <karl.guillotte.1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi group, > > I would like to know if there''s a way to apply a ''toString'' method to > an Element. Or is there librairies doing this on HTMLElement. > > Regards, > Karl > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You probably want Element#inspect [1] [1]: http://www.prototypejs.org/api/element/inspect - kangax On Apr 17, 5:38 pm, Karl <karl.guillott...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi group, > > I would like to know if there''s a way to apply a ''toString'' method to > an Element. Or is there librairies doing this on HTMLElement. > > Regards, > Karl--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---