The previous thread on this topic got a little disjointed, so I thought
I’d summarize the issue again, in hopes that someone could help. To
re-iterate, this rjs works in Firefox and Safari on Mac, and in Firefox
on Windows. It fails, in IE on Windows. The failure is that the second
page.replace_html seems to do nothing.
My environment is:
Rails 1.0 + RJS Plugin
Updated Javascripts to Scriptaculous 1.5.3 (for evalScripts support)
Monkeypatched in_place_editor to support evalScripts
This is the complete contents of the .rjs:
page.replace_html ‘current_search_name_editor’, :partial =>“search_name”
page.replace_html ‘search_pane’, :partial => “search”
My view contains:
…
<%= start_form_tag( {:action=> “master”}, {:id =>“conditions_form”} ) %>
The _search_name.rhtml partial:
<%= in_place_editor_field :current_search, :name, {}, {:script => true }
%>
The _search.rhtml partial:
<% if @current_search.conditions && @current_search.conditions.size > 0 %> <%= render :partial => 'condition', collection => @current_search.conditions.sort { |b, a| a.id <=> b.id} %> <% else %>
<% end %>
I would be grateful for any advice on figuring out what is going on.