I am testing a new optional funtionality in my site with IE 8 after
success with Firefox 3.6.3, chrome and safari.
The new functionality basically sees a “sub category” drop down list
get generated in my form as soon as a “Category” value is selected
from the “Category” drop down list.
I have been using the standard rails api such as observe_field, and
collective_select.
Anyway, when I loaded up the webpage on IE8 and selected a value from
the “Category” drop down list, the form fails to show the subcategory
drop down list.
Ajax doesn’t seem to be working here in IE8.
I know that rails uses prototype.
I have read that prototype 1.6RC2 is fully compatible with IE 8
(http://www.prototypejs.org/2009/3/27/prototype-1-6-1-rc2-ie8-
compatibility-element-storage-and-bug-fixes) .
I downloaded it and reloaded the webpage . No difference.
has anyone managed to get around the problem whereby ajax use in
IE8 fails?
has anyone got an alternative such as using observe_field/
observe_form and calling the whole url (appended with the selected
values at the time to load the other dynamic values (in this case,
category id which is appended to the url which would then load the
whole page with a bunch of sub category values ) )?
Anyway, when I loaded up the webpage on IE8 and selected a value from
the “Category” drop down list, the form fails to show the subcategory
drop down list.
Ajax doesn’t seem to be working here in IE8.
Just a thought, have you checked that your html is valid by pasting
the complete page source into the w3c html validator? Differences
between browsers is often down to invalid html.
libraries instead of fetching all the functions anew on every request."
I seemed to have repeatedly referenced prototype.js (ie via
:defaults,
and script=“javascript/text” )
HOW I FIXED IT:
Removed all references to prototype.js and left the :default call in
the
javascript include tag (ie. " <%= javascript_include_tag :defaults,
‘jquery’ %>"
Restarted the web server and tested changes on firefox 3.6.3, chrome,
safari, IE 7 and IE 8 - worked as expected.
Hope this helps some of you using IE 8.
Gordon Y.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.