Sheesh! bang on! including <tbody> tags did it. Thanks!
oh and the vanilla js.. still playing around with the page.. thats all :)

2009/8/7 Alex McAuley <[email protected]>

>
> Dude i am not sure why you use prototype and then revert to native
> document.getElementById()...... and other vanilla JS ....
>
> Try putting a <tbody> in your table.... <tbody> is required HTML in tables
> ... some browsers add it if its missing and some dont - Safari might be one
> that doesnt.........
>
> Alex Mcauley
> http://www.thevacancymarket.com
> ----- Original Message -----
> From: "Ram" <[email protected]>
> To: "Prototype & script.aculo.us" <
> [email protected]>
> Sent: Friday, August 07, 2009 11:14 AM
> Subject: [Proto-Scripty] RJS working in FF not in Safari
>
>
> >
> > 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?
> > >
> >
>
>
> >
>


-- 
In Sport We Trust !!!

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to