Ajit Datar
2006-Aug-07 12:57 UTC
[Rails] multiple text_field_with_auto_complete in IE/Opera
I have a text_field_with_auto_complete in _each_ row of my /list table. I use the autocomplete box in a row to update info in that row. I noticed that all of them get the same id and name attributes (user_uid and user[uid]). This doesn''t cause a problem in firefox 1.5 on windows. However on IE 6/Opera 9 I can only get autocomplete in the first box, and that box on :after_update_element affects all the rows. In firefox this is working flawlessly (though I wonder how, since ids are all the same). The obvious solution is to give different id to each. That breaks the autocomplete totally, as it is expecting id to be user_uid. My :after_update_element correctly refers to a the corresponding row''s span. I searched and read a lot but couldn''t find a solution. I''ll be very grateful if you people have any pointers/help. Thanks, Ajit -- Posted via http://www.ruby-forum.com/.
Seemingly Similar Threads
- text_field_with_auto_complete :after_update_element not firing
- :after_update_element on text_field_with_auto_complete
- Escape ''&'' in text_field_with_auto_complete
- question on text_field_with_auto_complete
- Re:(RESOLVED, KIND OF) auto complete and after update element