Ahhh, I found the issue. My page was including mootools automatically (it's a Joomla template). That was preventing my elements from being extended properly. Thanks
On May 9, 11:16 am, "T.J. Crowder" <[email protected]> wrote: > Hi, > > That's strange, if you're getting the element from $(), it should > already be extended (and if not, explicitly extending it should work). > > My only thought is that for some reason, the element lookup isn't > working at all and so it's not that it's not extended, but that the > element isn't there. That's the first thing I'd check -- e.g., whether > this.element is undefined rather than an un-extended DOM element. Just > as well IE8 has a built-in minimalist debugger... :-) > > HTH, > -- > T.J. Crowder > Independent Software Engineer > tj / crowder software / com > www / crowder software / com > > On May 9, 3:51 pm, blackfrancis <[email protected]> wrote: > > > > > > > > > My script is throwing an error on 'this.element.hasClassName()' in IE > > (only, Chrome works fine). Debugging, I see that the method is not > > present on the element. I gather that this is because the element is > > not automatically Extended. I put the line > > 'Element.extend(this.element)' before it in the script; but this > > didn't fix. Any hints? > > Actually, I'm confused how it could not have been extended in the > > first place, since the start of the function is: > > init: function(idOrElement, parent) { > > this.element = $(idOrElement); > > > and the $() is meant to extend automatically... no? > > > p.s.: IE8 -- 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.
