Text_field_auto_complete not working in IE?


#1

Hi all,

I’m looking for some insight on why my text_field_with_auto_complete
might not work in Internet Explorer. I’m using it in a fairly simple
way, without much customization.

I’ve broken it down and made a test page at
http://realty.colemanation.org/houses/test which shows the behavior I’m
having problems with. For me on Windows XP this page works fine in
Firefox, with the autocomplete fields finding their values from the
database and doing what they should. In Internet Explorer there’s no
autocomplete behavior at all.

(Note: the Cities and Zips are in TX, “Austin” and “Houston” should
work, as should “78731” and “77004”.)

I’m referencing a model called House which has the attributes ‘city’ and
‘zip’.

My view:

<%= start_form_tag(:controller => ‘houses’, :action => ‘find’) %>

City <%= text_field_with_auto_complete :house, :city, :size => 20
%>


Zip <%= text_field_with_auto_complete :house, :zip, :size => 10
%>


<%= end_form_tag %>

My controller contains the relevant declarations:

auto_complete_for :house, :city
auto_complete_for :house, :zip

I’ve included the default Javascripts in my layout and everything seems
in order. I haven’t overwritten any of the generated CSS or Javascript
anywhere.

If anyone has any ideas how this works, I’d be grateful.

Thanks!
Jeff C.man


#2

Jeff C.man wrote:

Hi all,

I’m looking for some insight on why my text_field_with_auto_complete
might not work in Internet Explorer. I’m using it in a fairly simple
way, without much customization.

I’ve broken it down and made a test page at
http://realty.colemanation.org/houses/test which shows the behavior I’m
having problems with. For me on Windows XP this page works fine in
Firefox, with the autocomplete fields finding their values from the
database and doing what they should. In Internet Explorer there’s no
autocomplete behavior at all.

(Note: the Cities and Zips are in TX, “Austin” and “Houston” should
work, as should “78731” and “77004”.)

I’m referencing a model called House which has the attributes ‘city’ and
‘zip’.

My view:

<%= start_form_tag(:controller => ‘houses’, :action => ‘find’) %>

City <%= text_field_with_auto_complete :house, :city, :size => 20 %>

Zip <%= text_field_with_auto_complete :house, :zip, :size => 10 %>

<%= end_form_tag %>

My controller contains the relevant declarations:

auto_complete_for :house, :city
auto_complete_for :house, :zip

I’ve included the default Javascripts in my layout and everything seems
in order. I haven’t overwritten any of the generated CSS or Javascript
anywhere.

If anyone has any ideas how this works, I’d be grateful.

Thanks!
Jeff C.man

Anyone have any insight about this? Why would
text_field_with_autocomplete work in Firefox but not in IE, all things
being equal?

Jeff


#3

Jeff
> Why would text_field_with_autocomplete work in Firefox but not in
IE, all

things being equal?

I don’t know why it happens but I solved this problem in my latest app.
by removing all explicit settings of the charset in before_filters and
RJS inline code.

Alain


#4

Alain R. wrote:

Jeff
> Why would text_field_with_autocomplete work in Firefox but not in
IE, all

things being equal?

I don’t know why it happens but I solved this problem in my latest app.
by removing all explicit settings of the charset in before_filters and
RJS inline code.

Alain

Interesting. Unless there’s something I’m not aware of, I have’t set
the character set anywhere but my HTML layout.

Jeff


#5

Hmm, I having problems as well

Problem 1: The drop down list renders in IE correctly the first time,
but then the second time, relies on the css i have for it. And since
they are

  • , i dont know how to have the “onhover” effect.

    Problem 2: In IE, the drop down list renders about 15px off in both
    vertical and horizontal directions.

    Anybody experience these and knows how to fix it?