multiple visual effects on one event
Posted
by ZX12R
on Stack Overflow
See other posts from Stack Overflow
or by ZX12R
Published on 2010-05-11T09:35:48Z
Indexed on
2010/05/11
9:44 UTC
Read the original article
Hit count: 328
I have a code that looks like this.
<%= link_to_remote "View results",
{
:update=>"uxUpdateDiv" ,
:url=>{:controller=>"exam", :action=>"results"} ,
:loading=>visual_effect(:appear, "uxcLoader", :duration=> 0.1),
:before =>visual_effect(:fade, "uxUpdateDiv", :duration => 0.1),
:complete => visual_effect(:appear, "uxUpdateDiv", :duration => 1.5 ),
:success=>visual_effect(:fade, "uxcLoader", :duration=> 1)
}
%>
what happens here is not good enough for me.
I want to add multiple effects for one event. Like the following:
:complete=>(:fade, "uxLoader", :duration=>1 AND :fade, "uxTheOtherDiv", :duration=>1)
How do i achieve this.? I am using jrails
© Stack Overflow or respective owner