-text_field_with_auto_complete- browser problems


#1

Hello,
i’m using the following code in my rails app. works like a charm on IE.
but on FF no autocomplete popup is displayed. can somebody help?

rails code:

<%= text_field_with_auto_complete :person, :nachname, {}, { :select => 'name', :after_update_element => "function(element,value) " + "{ " + remote_function(:update=>'Kundendaten', :url=>{:action=>:update_kundendaten}, :with=>"'adr_id='+value.id") + ";" + "}" } %>

html result:

div.auto_complete { width: 350px; background: #fff; } div.auto_complete ul { border:1px solid #888; margin:0; padding:0; width:100%; list-style-type:none; } div.auto_complete ul li { margin:0; padding:3px; } div.auto_complete ul li.selected { background-color: #ffb; } div.auto_complete ul strong.highlight { color: #800; margin:0; padding:0; }