hi, guys, I solved the problem.
SOLUTION: Do not explicitly include references to the prototype js framework. WHAT I HAVE IN MY SOURCE CODE (ie. "app/views/layouts/application.html.erb"): ================================================================ > ---Extract start > > <script type="text/javascript" src="/javascripts/prototype.js"></script> > <script type="text/javascript" > src="/javascripts/scriptaculous.js?load=effects,builder"></script> > <%= javascript_include_tag :defaults, 'jquery', 'prototype' %> > <%= stylesheet_link_tag 'scaffold', 'table_style' %> > <script type="text"> > jQuery.noConflict(); > </script> > > ---Extract end > WHY THE PROBLEM OCCURED IN MY SOURCE CODE: ============================================= 1. Reading http://www.51773.com/tools/api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html, rails includes the Rails includes the Prototype JavaScript framework. I suppose this is done by doing either the following in the head of the application ( in my case, "app/views/layouts/application.html.erb"). Here's an extract from the link I pasted: > "Rails includes the Prototype JavaScript framework and the > Scriptaculous JavaScript controls and visual effects library. If you wish > to > use these libraries and their helpers (ActionView::Helpers::PrototypeHelper > and ActionView::Helpers::ScriptaculousHelper), you must do one of the > following: > > * Use <%= javascript_include_tag :defaults %> in the HEAD section > of your page (recommended): This function will return references to the > JavaScript files created by the rails command in your public/javascripts > directory. Using it is recommended as the browser can then cache the > libraries instead of fetching all the functions anew on every request." > 2. 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 Yeong -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

