Simple insert_html RJS working in FF not in Safari

Hi,

Im trying to insert a

into a table. the code is as below.

HTML

<%= render :partial => "item", :collection => @order.items %>

<tr id="empty_row">
<%= add_item_link "+" %>

_item.html.erb

helper method

def add_item_link(name)
link_to_function name do |page|
page.insert_html :before, :empty_row, :partial=>‘item’, :object
=> Item.new
end
end

This works in FF but not in Safari. Any idea what the problem might
be?
Thanks.

Hi

In my case none of the rjs working with any of the browsers. even the
page.alert function
please let me know the prob

error msg is

try { } catch (e) { alert(‘RJS error:\n\n’ + e.toString()); alert(’’);
throw e }

-nirosh-

had to insert

tags for it to work in Safari.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs