#376 closed bug (wontfix)
Apparent conflict between prototype & jquery in IE6 & IE7
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ajax | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Rails app using prototype defaults & jquery(1.0.3) - Rails' text_field_with_auto_complete works in FF(1.5 & 2) but not in IE(6 or 7).
In order to isolate the problem, I created a simple Rails app as follows:
++++++++++++++++++++++++++++
Controller: (test_controller.rb)
class TestController < ApplicationController
auto_complete_for :item, :name
def index end
end
========================
View: (index.rhtml)
<%= text_field_with_auto_complete :item, :name %>
========================
In the layout (test.rhtml) I added
<%= javascript_include_tag "prototype" %>
<%= javascript_include_tag "controls" %>
<%= javascript_include_tag "effects" %>
<%= javascript_include_tag "jquery" %>
Once jquery is added, the auto complete breaks in IE6 & IE7, but works fine in FF1.5 & FF2.
There is documentation available to get jQuery working with Prototype: http://jquery.com/docs/PrototypeAndJQuery/