Hi Todd, You're setting this._element like this:
> this._element = parentDiv.select(".txt-message-panel"); Element#select[1] returns an array of matching elements, not an element. I don't think $[2] 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[3]. Regardless, once you've gotten an element from Prototype, it will already be extended and you don't have to pass it through $ again. [1] http://prototypejs.org/api/element/select [2] http://prototypejs.org/api/utility/dollar [3] http://prototypejs.org/api/element/down HTH, -- T.J. Crowder 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 1.6.0.3 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. > > http://pastebin.com/f6fd30146 > > 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? > > Thanks, > Todd --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---