Forum: Ruby on Rails text_field_with_auto_complete in Internet Explorer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5fa4bbe2cd502510e7702ae1b845f2dd?d=identicon&s=25 Maarten Hendrikx (Guest)
on 2006-05-21 09:40
Hi,

I'm trying to implement a search feature on my blog:
http://not.justco.de.
It works nicely in Firefox and Safari, but not in Internet Explorer.
This is the code in my _search.rhtml:
<%= text_field_with_auto_complete :post, :title  %>

This is in the controller:
def auto_complete_for_post_title
  @results = Post.find(:all, :conditions => [ 'LOWER(title) LIKE ?','%'
+   params[:post][:title].downcase + '%' ], :order => 'title ASC',
:limit => 20)
  render :partial => 'results'
end

Also I can't seem to style li.selected in my css, it just keeps ignoring
the value and it always uses the default yellow color.

Any help would be great,
Maarten
This topic is locked and can not be replied to.