try something like
<%= form_remote_tag(:update => "mytable",
:url => { :action =>
:add_time_request_option },
:loading =>
''item_loading()'',
:complete =>
''item_added()''),
:position => ''bottom''
%>
( I this works with lists - not sure if it works with tables... )
On 7/19/05, Shelby Westman
<shelby.westman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m reading the RoR book and studying the section on Ajax. Right
now
> I have an Ajax call which replaces an entire div. It looks like this:
>
> <%= form_remote_tag(:update =>
"current_entry_time_options",
> :url => { :action =>
:add_time_request_option },
> :loading =>
''item_loading()'',
> :complete =>
''item_added()'') %>
>
>
> I don''t understand how to incorporate something like this:
>
> new Insertion.Bottom(''mytable'',
''<tr><td>We\''ve a new row
here!</td></tr>'');
>
> into that form_remote_tag so that I can just add a row to my table and
> not replace the whole div.
>
> Can someone help with the syntax?
>
> Thanks!
> Shelby
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>