You're setting this._element like this:
> this._element = parentDiv.select(".txt-message-panel");
Element#select returns an array of matching elements, not an
element. I don't think $ accepts arrays; it accepts strings (IDs)
and elements, and will accept several of them as separate arguments,
but not a single argument that is an array. I think you probably
meant to use down. Regardless, once you've gotten an element from
Prototype, it will already be extended and you don't have to pass it
through $ again.
tj / crowder software / com
Independent Software Engineer, consulting services available
On Apr 2, 12:34 am, Todd Nine <todd.n...@gmail.com> wrote:
> Hi all,
> I'm creating an AJAX controller for an Inbox and Outbox. I'm using
> a combination of Prototype 220.127.116.11 to encapsulate the logic within a
> single class, then just linking 2 instances of the class to the
> correct div elements using the Behaviour script API. For some reason,
> I'm unable to list childElements or get a child element by the select
> method either. All of my elements are present, and I do have child
> elements according to the firebug debugger. Below is my code.
> I always receive $(this._element).childElements is not a function
> method not available when line 23 runs. Is this an issue with using
> Behaviour to bind classes to DOM elements?
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@example.com
To unsubscribe from this group, send email to
For more options, visit this group at