Hi, Im trying to insert a <tr> into a table. the code is as below.
HTML --------- <table id="tab"> <tr> <!-- SOME <td>s HERE --> </tr> <%= render :partial => "item", :collection => @order.items %> <tr onmouseover="document.getElementById ('plussign').style.display='block';" onmouseout="document.getElementById('plussign').style.display='none';" id="empty_row"> <td> <div style="display:none;" id="plussign"><%= add_item_link "+" %></ div> </td> <!-- MORE <td>s HERE --> </tr> <!-- MORE <tr>s HERE --> </table> _item.html.erb --------------------- <tr class="row"> <!-- <td>s HERE --> </tr> 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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---