I’m using a rjs template to redraw a partial and display some status
info in a div after an update. Is it possible to to have that update
div do a visual_effect :appear, a pause for a time, then a
visual_effect :fade?
–
Sterling A.
sterling.anderson [at] gmail.com
http://sterlinganderson.net/
Yup.
I have this in application_helper.rb for displaying status responses to
ajaxy calls.
page.visual_effect :appear, ‘user-message’, :duration =>‘1’
page.delay(10.seconds) do
page.visual_effect :fade, ‘user-message’, :duration => ‘2’
end
chao,
sudara
Or you could do it simpler:
page.visual_effect :appear, ‘user-message’, :duration =>1
page.visual_effect :fade, ‘user-message’, :duration => 2, :delay => 10
Best,
Eszter
Primalgrasp LLC
http://primalgrasp.com
iirc, you can do
page.visual_effect :fade, ‘user-message’, :duration => ‘2’, :delay =>
‘10’
too.
Best,
Thomas
Am 23.08.2006 um 20:06 schrieb [email protected]: