Yes, but I think toggling is better solution. Alternatively you can
include another JavaScript library, I suggest script.aculo or jQuery.
http://madrobby.github.com/scriptaculous/effect-fade/

If you want to AJAXify first do everything without it. As soon as it
works you can change part by part to AJAX. Use Firebug to try out
every CSS modification first without changing the code, and see if any
JS bug occurs, any you can use selenium too.

good luck
gezope

On Feb 17, 9:28 am, Julien <[email protected]> wrote:
> Maybe you can see to it by simply changing the style of your edit div
> from "display:none" to "display:block" using a simple javascript
> function if you don't like using javascript libraries.
>
> On 16 fév, 14:57, pepe <[email protected]> wrote:
>
> > > Lets ignore the 'editable' form part.  In general how would I hide/
> > > show a div on a button click for instance?
>
> > In addition to what Walter mentioned there is the 'toggle' 
> > function:http://api.prototypejs.org/dom/Element/toggle/

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to