Thank you Alain, I am not at all opposed to hiding one link and displaying the
other ( I assume you mean having a div container for each and setting the
appropriate style )
Unfortunately, the problem remains for me that I still do not know how to modify
those style attributes from the action that gets called via the first link, I
still have not had any success doing a page.replace_html, or know if that is
even the right approach.
-Andy
--------------------------------------------------------------------
Message: 6
Date: Tue, 04 Apr 2006 20:21:18 +0200
From: Alain Ravet <arav2132@biz.tiscali.be>
Subject: [Rails] Re: Not getting the whole RJS-based partial rendering
concept ...
To: rails@lists.rubyonrails.org
Message-ID: <e0udev$uhe$1@sea.gmane.org>
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
-----------