On Nov 27, 10:53 am, Diodeus <[EMAIL PROTECTED]> wrote: > This code works in IE, bot for FF: > > var prev = $(element).previousSibling > alert(prev.getHeight()) > > In FF gives me "prev.getHeight()) is not a function. > > Has FF gone mad? Have I?
Perhaps, `previousSibling` is not an element node, but a text/comment node? If so, then using `previous()` instead of `previousSibling` should do the trick. -- kangax --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---