On Oct 7, 7:42 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote:
> Is there a Prototype way to get the descendants of an element that are only
> text nodes? Element.descendents() only returns elements. Thanks!
> -Hector
It's neither Prototype nor part of a published API, but I have noticed
that Scriptaculous:effects adds a method to Element called
'collectTextNodes'. It actually does a 'join' on them, so if you want
a list of nodes, you can't use it (though you might copy it).
If you do want a string, and you're using Scripty as well, and you
don't mind the risk of using internal functions, you could use it
directly :-)
Colin
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---