Hi Relatively new to Prototype and I''m trying to use the Element#up / down functions. FF works great, but when I try it in IE it''s not working as expected. The code tries to go ''up'' to the first ''tr'', then ''down'' to a specific id and get the value: <script> function returnVendor(element) { oRow = $(element).up("TR"); $(''vendorName'').value = oRow.down(''#vendorName'').value; } </script> <html> ... <tbody> <tr> ... <td><a href="#" onclick="window.opener.returnVendor(this);window.close();">Select</a></ td> ... </tr> </tbody> ... </html> I saw a number of posts from a while ago that describe this issue and was wondering if this has been resolved and I''m screwing something up, or if there is an accepted work around. thanks --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
As id= are required to be unique, why not just go $(''vendorName'')? IIRC, IE will (incorrectly) return an array of elements matching a given ID, while other browsers will only return the first one in doc order. So perhaps you''re misusing id=, and should use class= instead? up(''tr'').down(''.vendorName'') -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---