Displaying 1 result from an estimated 1 matches for "del_com".
Did you mean:
cellcom
2006 Aug 14
4
Updating a table with Ajax
...;delete''),
{ :url=>{
:action=>"delete_comment",
:id=>@comment.id},
:update=>"comment#{@comment.id}",
:loading=>"status(''comment#{@comment.id}'')"},
{ :class => ''del_comment''}
%></td>
</div>
</tr>
Here''s the problem:
The ajax updating works, but instead of putting the new comment inside the
table, it puts it after the table.
The delete button doesn''t update the table either (unless I refresh the page
of co...