Yeah, I was thinking maybe it wasn't appended to the dom or something silly, hence the reason the first line reading var el = $($(this._relative).id);
If you are familiar with the IE dom explorer, You can look at elements and see their properties. In the test quoted further up, if I look at one of my extended elements, next/prev etc traversal methods are showing. When I check the element that the call to up() is failing on, those methods aren't there. There are *some* prototype elements though, for example, addClassName is there. Im pretty sure it's an element since el.parentNode.parentNode returns object, or in firefox, htmldomelement (or something like that, cant remember the exact wording) Whats confusing me is that while el.up() works in firefox, el.up(1) doesn't (which it should since the .parentNode.parentNode call works) and I can't see for the life of me why el.up() wouldn't exist/work in IE. I appreciate it's hard to debug this without a proper working example, it seems every time I try to copy one of these problems out, it goes away.. seems to only exist in context. If it's of any consequence, the div that i'm trying to work upwards to is a sortable (so it may already be extended but not with all methods?), and el is an input field. Gareth On 6/6/07, tobie <[EMAIL PROTECTED]> wrote: > > > > If this._relative is an element than: > > var el = $(this._relative) will return the same element, extended. > el.up() should return an extended element (el's first parent element). > el.up(1) should also return an extend element (el's grand-parent) > > My guess is that either this_relative isn't a DOM element, or you're > having some ill formed html (identical ids on the same page or what > not). > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---