Hey Guys, i'm trying to traverse the dom and having not much luck. Current browser is IE6. I have confirmed the element is extended, (_extended:true) as I just called Element.extend($(this).parentNode.parentNode)
What I actually want is $(this).up(2).next(1) but the up and next methods are throwing invalid property or method errors. I can check the element using the dom viewer as part of the developer toolbar, and while the element has methods such as getHeight, removeClassName etc there is no Next/Up/Down methods defined. Has this changed in 1.5.1? Am I doing something wrong? I am aware of the IE not properly extending elements issue, which is why I did the manual Element.extend. Element.extend($(this).parentNode.parentNode); //Throws error alert($(this).parentNode.parentNode.next()); On further inspection, this syntax isn't working in firefox either: it throws Error: Selector.handlers has no properties Source File: http://localhost:1694/Listz/Javascript/prototype.js Line: 1457 What the--- Gareth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
