On 4 Nov 2008, at 09:02, Mikael Björkegren wrote:
>
> Thanks for the quick reply. But where am i going to put this?
>
>> I typically do that by also toggling some css class (eg $
>> ('something').toggleClassName('expanded'). in this case you can
>> probably do this.toggleClassName('some-class') )
>>
>> Fred
>
> <%= link_to_function '',
> "Effect.toggle('summary_dropdown')",
> :id => 'toggle',
> :class => 'icon-expand' %>
>
> I guess it should be someting like
> ('toggle').toggleClassName('icon-fade')
>
> but where will i put this in my link_to_function ?
the second argument to link_to_function is an arbitrary javascript
fragment. You can put as much in there as you want.
Fred
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---