Displaying 2 results from an estimated 2 matches for "clear_the_table".
2006 Apr 04
7
Not getting the whole RJS-based partial rendering concept ...
I have been trying all kinds of different ways to produce what I think
should be a simple effect, but have not had any luck yet and apparently
I am not following the general idea...
What I am trying to accomplish is the following (part 1 works and part 2
does not):
1. One of my views has a link_to_remote which updates a div container
with a table of data
my example is
<div
2006 Apr 04
1
Re: Rails Digest, Vol 19, Issue 102
...g>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Andrew
> 2. At the point where the table appears I would like for the above
link
> to be replaced with a link to clear the table.
I would rather
1/ place the 2 links in the original html,
2/ hide the 2nd link (clear_the_table) with
style="display:none"
and then
3/ hide the first link, and show the 2nd - clear_the_table - link.
When applicable, I find this way simpler to code, understand and debug.
Alain
-----------