Hi,
I was following the tutorial at http://www.onlamp.com/pub/a/onlamp/
2005/06/09/rails_ajax.html and I''ve stumbled on a problem. Instead of
using a <ul> tag like the tutorial for the list, I tried using a
<table> tag. The problem I''m seeing is that the new item is
rendered
on top of the first item. The existing items are not shifted down as
in the <ul> case. Is this normal behavior for tables? Here''s what
I''m
doing:
VIEW:
<%= form_remote_tag(:update => "receipt_list",
:url => { :action => :add_receipt },
:position => "top" ) %>
...
<%= end_form_tag %>
<table id="receipt_list">
...
</table>
CONTROLLER:
...
def add_receipt
...
render :text =>
"<tr><td>"..."</td></tr>"
end
If anyone knows what''s going on, I''d appreciate some help.
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1